Olav
2010-06-17 06:46:15 UTC
In the first calculation shown below both Visual Basic, my calculator and
even Windows calculator produce a result of 5 720 000 000. Also Wikipedia
claims it should be 5 720 000 000.
http://en.wikipedia.org/wiki/Scientific_notation
Is E9 and 10^9 two different worlds in Powerbasic?
FUNCTION PBMAIN () AS LONG
LOCAL a AS QUAD
a = 5.72 * 10^9 ' outputs 5 719 999 790
? a
a = 5.72E9 ' outputs 5 720 000 000
? a
? "Press a key to end the program..."
WAITKEY$
END FUNCTION
even Windows calculator produce a result of 5 720 000 000. Also Wikipedia
claims it should be 5 720 000 000.
http://en.wikipedia.org/wiki/Scientific_notation
Is E9 and 10^9 two different worlds in Powerbasic?
FUNCTION PBMAIN () AS LONG
LOCAL a AS QUAD
a = 5.72 * 10^9 ' outputs 5 719 999 790
? a
a = 5.72E9 ' outputs 5 720 000 000
? a
? "Press a key to end the program..."
WAITKEY$
END FUNCTION