User Tools

Site Tools



DP(value, numberOfDigits, zeroPrint)

DP converts a variable into a decimal string representation. If zeroPrint is set to 1, zeros are printed instead of blank spaces.

Dim A as Integer
Debug DP(A,10,0)   ' Convert A into decimal String representation.
                   ' Set numberOfDigits to 10.
                   ' If A is 1234, "      1234" will be displayed.
                   ' (notice the 6 leading spaces)
Debug DP(A,10,1)   ' If A is 1234, "0000001234" will be displayed.

See also HP and FP.

Go CUBLOC home

cubloc/dp/index.txt · Last modified: 2016/06/22 10:54 by COMFILE Technology