xtr.numbers¶
ofBinary¶
ofBinary(binary: String | Number): Number
Returns the Number
representation for the given binary
.
Example
ResultofHex¶
ofHex(hexadecimal: String): Number
Returns the Number
representation for the given hexadecimal
.
Example
ResultofOctal¶
ofOctal(octal: String | Number): Number
Returns the Number
representation for the given octal
.
Example
ResultofRadix¶
ofRadix(value: String | Number, n: Number): Number
Returns the Number
representation for the given Base-n
value
Example
ResulttoBinary¶
toBinary(number: Number): String
Returns the binary representation for the given number
.
Example
ResulttoHex¶
toHex(number: Number): String
Returns the hexadecimal representation for the given number
.
Example
ResulttoOctal¶
toOctal(number: Number): String
Returns the octal representation for the given number
.
Example
ResulttoRadix¶
toRadix(value: Number, n: Number): String
Returns the Base-n
representation for the given value
as a String
.
Example
Result