numbers
fromBinary(number value)
Converts value
from binary to decimal.
Example
DataSonnet map:
ds.numbers.fromBinary(1100100)
Result
100
fromHex(number value)
Converts value
from hex to decimal.
Example
DataSonnet map:
ds.numbers.fromHex(64)
Result
100
fromRadixNumber(number value, number baseAsBinary)
Converts value
to a decimal with the base baseAsBinary
.
Example
DataSonnet map:
ds.numbers.fromRadixNumber(1101000, 2)
Result
104
toBinary(number value)
Converts value
from decimal to binary.
Example
DataSonnet map:
ds.numbers.toBinary(100)
Result
"1100100"