does this help?
https://forum.thegamecreators.com/thread/224667
otherwise:
// set display properties
SetVirtualResolution( 1280,720)
SetOrientationAllowed( 1, 1, 1, 1 )
SetSyncRate( 30, 0 )
SetScissor( 0,0,0,0 )
UseNewDefaultFonts( 1 )
This$ = Strip("12.00400")
do
If GetRawKeyState(27) then Exit
Print( This$ )
Sync()
loop
Function Strip(This$)
Repeat
This$ = Left(This$, LEN(This$)-1)
Until MID(This$,LEN(This$),1) <> "0"
If MID(This$,LEN(This$),1) = "." then This$ = LEFT(This$,LEN(This$)-1)
EndFunction This$
?
Quote: "str(FloatNumber#, 0)
Will strip all the zeros out."
will remove
all decimal places while you might want to keep non-zeros, instead?