Task

Express a number in decimal as a fixed-length string with leading zeros.



For example, the number   7.125   could be expressed as   00007.125.




' FB 1.05.0 Win64
 
#Include "vbcompat.bi"
 
Dim s As String  = Format(7.125, "00000.0##")
Print s
Sleep