MaxLen/Float?

BlitzPlus Forums/BlitzPlus Programming/MaxLen/Float?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

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