does my function help
// Project: pad
// Created: 2017-12-24
// show all errors
SetErrorMode(2)
// set window properties
SetWindowTitle( "pad" )
SetWindowSize( 1024, 768, 0 )
SetWindowAllowResize( 1 ) // allow the user to resize the window
// set display properties
SetVirtualResolution( 1024, 768 ) // doesn't have to match the window
SetOrientationAllowed( 1, 1, 1, 1 ) // allow both portrait and landscape on mobile devices
SetSyncRate( 30, 0 ) // 30fps instead of 60 to save battery
SetScissor( 0,0,0,0 ) // use the maximum available screen space, no black borders
UseNewDefaultFonts( 1 ) // since version 2.0.22 we can use nicer default fonts
global number as integer
number=63
do
print (pad(number,"0",4))
Print( ScreenFPS() )
Sync()
loop
function pad( num,with$, length)
str$ = str(num)
new$=""
for a=1 to length - len(str$)
new$=new$+with$
next
new$=new$+str$
endfunction new$