lltostrΒΆ

lltostr (long-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 = lltostr(rmReal, nBase)

Return Value

rmString is a matrix of strings.

Parameters

rmReal

rmReal is a real matrix. Range: -2^52 to 2^53-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 lltostr can convert numbers not only to the decimal, hexadecimal or octal number system.

Example

* lltostr(2^53, 2)
100000000000000000000000000000000000000000000000000000
* lltostr(2^53, 16)
20000000000000
* lltostr(2^53-1, 16)
1FFFFFFFFFFFFF

id-1700593