02-01-2005, 11:13 PM
The following program works in QB but not in FB 0.11
With FB 0.11, the program prints the whole number of digits, regardless of the format string.
It seems that FB does not round the number before printing it.
Code:
DIM X AS DOUBLE
X = 1.23456789
PRINT USING "##.########"; X ' Should print 1.23456789
PRINT USING "##.####"; X ' Should print 1.2346
PRINT USING "##.###"; X ' Should print 1.235
DO: LOOP UNTIL INKEY$ <> ""
With FB 0.11, the program prints the whole number of digits, regardless of the format string.
It seems that FB does not round the number before printing it.
ean Debord
----------------
Math library for FreeBasic:
http://www.unilim.fr/pages_perso/jean.de...fbmath.zip
----------------
Math library for FreeBasic:
http://www.unilim.fr/pages_perso/jean.de...fbmath.zip