Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!lll-winken!elroy.jpl.nasa.gov!usc!zaphod.mps.ohio-state.edu!think.com!mintaka!mit-eddie!uw-beaver!zephyr.ens.tek.com!tektronix!reed!bowman From: bowman@reed.UUCP (Eric Bowman) Newsgroups: comp.sys.mac.programmer Subject: Script Manager 68881 woes Keywords: Script Mgr, mc68881,c++ Message-ID: <15933@reed.UUCP> Date: 24 Jan 91 07:35:25 GMT Organization: Reed College, Portland OR Lines: 25 I'm trying to write a function in C++ to convert between floating point and text using the script manager. Easy enough: void plot::DecToString(double theNum,Str255 theString) { extended temp; temp = (extended) theNum; FormatX2Str(temp,&myNumFormat,&myNumberParts,theString); } This works fine, except when the 68881 compiler option is on. The problem seems clear -- 96 bits versus 80 bits for the length of an extended. What's not so clear is how to write this function so that it will work with or without the 68881. Has anyone dealt with this before? Any help would be *greatly* appreciated. Thanks, bobo bowman@reed.{bitnet,UUCP,edu} ...!tektronix!reed!bowman