ltostrΒΆ
ltostr (long-to-string) converts a real matrix of integers to a string matrix of specified base. Base must be in the range 2 to 36.
- smString = ltostr(rmReal, nBase)
Return Value
rmString is a matrix of strings.
Parameters
- rmReal
rmReal is a real matrix. Range: -2^31 to 2^31-1.
- nBase
nBase is used as the base of the number and must be in the range 2 to 36. The letters a-z or A-Z are assigned the values 10 through 35.
Comment
In opposite to printf ltostr can convert numbers not only to the decimal, hexadecimal or octal number system.
Example
* ltostr(123, 10)
123
* ltostr(5, 2)
101
* ltostr(0xA, 16)
0xA
* ltostr(3710, 36)
2v2
See also
id-1745352