RosettaCodeData/Task/Non-decimal-radices-Input/JavaScript/non-decimal-radices-input-1.js
2023-07-01 13:44:08 -04:00

6 lines
148 B
JavaScript

+"0123459"; // 123459
+"0xabcf123"; // 180154659
// also supports negative numbers, but not for hex:
+"-0123459"; // -123459
+"-0xabcf123"; // NaN