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