Anonymous user
Non-decimal radices/Input: Difference between revisions
m
→{{header|OCaml}}
(Nimrod -> Nim) |
|||
Line 580:
The <code>Int32.of_string</code>, <code>Int64.of_string</code>, and <code>Nativeint.of_string</code> functions also can understand the above prefixes when parsing into their appropriate types.
You could also use the <code>Scanf</code> module to parse un-prefixed hexadecimal, decimal, and octal numbers (binary not supported):
|