[futurebasic] Floating point question

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : September 1999 : Group Archive : Group : All Groups

From: JoeAtTIME@...
Date: Wed, 22 Sep 1999 10:16:45 EDT
I am a little confused about the format of floating point numbers in FB^3. 

Are the floating point values defined with the "#" symbol extended presision 
(10 bytes per number) or double presision (8 bytes per number)? 

Are single precision floating point numbers 4 bytes per number or 8 bytes per 
number? This quote from the conversions manual seems to imply that they are 8 
bytes but that seems wrong to me: "When saving single precision floats, both 
PPC and SANE (but not FutureBASIC II) use the same 8 byte structure and these 
may be saved as numeric values."

If floating point values defined with the "#" symbol are extended precision 
with 10 bytes per number is it posible to convert them to the 8 byte per 
number double precision format? If not is it posible to still use the 
SaneCalls.INCL file from FB2 to convert between different kinds of floating 
point numbers, even though the SaneCalls.INCL file seem to be written in 68K 
assembly? (I need the double precision numbers because they are required in 
the format of a file my program creates for use by another program.)

Thanks for any help,
-Joe Lertola