; Str Example ; ----------- ; Str converts a number into a string. Blitz3D also converts ; automatically when you join a number onto a string with +. score=1250 score_text$=Str(score) Print "Str(1250) gives the string '"+score_text$+"' - "+Len(score_text$)+" characters" Print "" ; Once it is a string, all the string commands work on it Print "Zero-padded score: "+Right$("00000000"+Str(score),8) ; Floats keep their decimal part health#=87.5 Print "Str(87.5) = '"+Str(health#)+"'" ; Joining with + converts automatically, giving the same result Print "Automatic conversion: '"+health#+"'" Print "" Print "Press any key to close the example" WaitKey End