MaxLen/Float?

BlitzPlus Forums/BlitzPlus Programming/MaxLen/Float?

WillKoh(Posted 2004) [#1]
Anyone knows what the greatest size (string-wise-thinking) of a float is? The number with the most digits, I mean.


Floyd(Posted 2004) [#2]
A displayed number has at most six significant digits, but may also have leading zeroes.
As for string length there are also sign and e-notation to consider.

This should be the most digits and longest string:
Graphics 200, 150, 0, 2

x# =  0.00123456
y# = -0.000123456

s$ = Str( x )
t$ = Str( y )

Text 58, 55, s
Text 50, 75, t

WaitKey : End