Gavin Schulz
87cc5fdbae
feat: add Num.fromString static method to parse decimal string literals
...
Implements a new `fromString` static method on the `Num` class that attempts to parse a string as a decimal number literal using `strtod`. Returns the parsed `Num` value on success, or `null` if the string does not represent a valid number. Includes runtime validation that the argument is a string, and adds test coverage for positive, negative, zero, and decimal inputs as well as non-numeric strings.
2015-02-23 04:06:17 +00:00
..
2015-01-09 07:06:50 +00:00
2014-02-24 15:27:43 +00:00
2014-02-24 15:27:43 +00:00
2015-02-16 10:30:15 +00:00
2015-02-16 10:30:15 +00:00
2014-01-05 20:27:12 +00:00
2014-02-24 15:27:43 +00:00
2014-02-24 15:27:43 +00:00
2015-02-16 10:30:15 +00:00
2015-02-16 10:30:15 +00:00
2015-02-16 10:30:15 +00:00
2015-02-16 10:30:15 +00:00
2015-01-09 07:06:50 +00:00
2014-01-05 20:27:12 +00:00
2013-11-27 06:52:00 +00:00
2014-01-02 15:32:00 +00:00
2014-01-08 15:47:14 +00:00
2014-01-05 20:27:12 +00:00
2015-01-09 07:06:50 +00:00
2015-02-23 04:06:17 +00:00
2014-01-21 15:44:11 +00:00
2014-01-21 15:44:11 +00:00
2015-01-25 06:07:23 +00:00
2015-01-25 21:02:44 +00:00
2014-01-08 15:47:14 +00:00
2014-01-21 15:44:11 +00:00
2014-01-21 15:44:11 +00:00
2015-02-23 04:06:17 +00:00
2014-01-02 15:32:00 +00:00
2014-01-08 15:47:14 +00:00
2014-01-02 15:32:00 +00:00
2015-01-21 20:49:43 +00:00
2014-01-02 15:32:00 +00:00
2014-01-08 15:47:14 +00:00
2015-01-16 05:50:01 +00:00
2014-01-02 15:32:00 +00:00
2014-01-08 15:47:14 +00:00
2015-01-09 07:06:50 +00:00
2015-01-09 07:06:50 +00:00
2014-01-05 20:27:12 +00:00