Path: utzoo!utgpu!water!watmath!clyde!rutgers!sri-spam!ames!umd5!purdue!i.cc.purdue.edu!j.cc.purdue.edu!k.cc.purdue.edu!l.cc.purdue.edu!cik From: cik@l.cc.purdue.edu (Herman Rubin) Newsgroups: comp.unix.wizards Subject: Re: casting to float without converting to float? Summary: You can't Message-ID: <649@l.cc.purdue.edu> Date: 8 Jan 88 14:18:25 GMT References: <11171@brl-adm.ARPA> Organization: Purdue University Statistics Department Lines: 13 In general, you cannot change the type of a quantity (unfortunately). It may be that the problem can be avoided by using a cast when reading or writing the quantity, if the appropriate array is used. The 4.3 BSD VAX math library uses casts and #defines to set up the constants for the elementary functions. Otherwise your solution to use inline assembler statements is the only thing I have found to work, and the various gurus I have consulted have not come up with anything better. -- Herman Rubin, Dept. of Statistics, Purdue Univ., West Lafayette IN47907 Phone: (317)494-6054 hrubin@l.cc.purdue.edu (ARPA or UUCP) or hrubin@purccvm.bitnet