[futurebasic] Re: [FB] help with double precision

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : May 2012 : Group Archive : Group : All Groups

From: Brian S <fblistserve@...>
Date: Thu, 10 May 2012 11:15:35 -0700
On May 10, 2012, at 10:24 AM, Brian S wrote:

> I’ll do a little research and report back.
Running with the debugger:

ConsoleAppInput( PSstrcpy( STACK_PUSH, "\pType a number here:  " ),  &y, 13 );

The ’13’ identifies the var as a float/single instead of a double ( later code expects a ’14’ here if the variable is a double ). If I change the vartype to 14 in the debugger the correct value is returned in the y variable. So basically this is a bug. Consider the bug filed. I don’t have a workaround unless you are willing to work with the generated C code and simply change the 13 to 14 and build from within Xcode.

Brian S.