Kyle Charters
884e6853d3
feat: add Num.round method for rounding numbers to nearest integer
...
Implement the `round` method on the Num class that rounds a number to the nearest integer using standard rounding rules (away from zero for .5). The implementation adds a new `num_round` primitive function in the VM core, registers it as a method on the Num class, includes documentation in the core module reference, and adds a comprehensive test file covering positive, negative, zero, and fractional cases.
2017-09-21 00:27:02 +00:00
..
2015-09-15 14:46:09 +00:00
2015-09-15 14:46:09 +00:00
2015-09-15 14:46:09 +00:00
2015-09-15 14:46:09 +00:00
2015-09-15 14:46:09 +00:00
2015-03-14 19:45:56 +00:00
2017-01-13 05:32:50 +00:00
2015-03-14 19:45:56 +00:00
2017-01-13 05:32:50 +00:00
2017-01-13 06:17:33 +00:00
2015-03-14 19:45:56 +00:00
2017-01-13 05:32:50 +00:00
2015-03-14 19:45:56 +00:00
2017-01-13 05:32:50 +00:00
2015-03-14 19:45:56 +00:00
2017-01-13 05:32:50 +00:00
2015-09-15 14:46:09 +00:00
2015-09-15 14:46:09 +00:00
2016-10-09 08:18:27 +00:00
2015-03-14 19:45:56 +00:00
2015-03-14 19:45:56 +00:00
2015-09-15 14:46:09 +00:00
2015-09-15 14:46:09 +00:00
2015-09-15 14:46:09 +00:00
2015-09-15 14:46:09 +00:00
2015-03-14 19:45:56 +00:00
2015-03-14 19:45:56 +00:00
2015-09-15 14:46:09 +00:00
2015-03-14 19:45:56 +00:00
2015-03-14 19:45:56 +00:00
2015-07-09 15:06:33 +00:00
2015-09-30 15:41:43 +00:00
2015-09-30 15:41:43 +00:00
2015-09-15 14:46:09 +00:00
2016-08-28 00:25:32 +00:00
2015-03-14 19:45:56 +00:00
2015-03-14 19:45:56 +00:00
2016-10-31 19:52:32 +00:00
2015-03-14 19:45:56 +00:00
2015-09-15 14:46:09 +00:00
2015-03-14 19:45:56 +00:00
2015-09-15 14:46:09 +00:00
2015-03-14 19:45:56 +00:00
2015-09-15 14:46:09 +00:00
2015-09-01 15:16:04 +00:00
2015-09-15 14:46:09 +00:00
2015-03-14 19:45:56 +00:00
2015-09-15 14:46:09 +00:00
2016-10-31 19:52:13 +00:00
2017-09-21 00:27:02 +00:00
2015-09-15 14:46:09 +00:00
2016-10-09 08:18:27 +00:00
2016-08-28 00:25:32 +00:00
2015-09-15 14:46:09 +00:00
2015-09-15 14:46:09 +00:00
2015-09-15 14:46:09 +00:00
2015-09-15 14:46:09 +00:00
2015-09-15 14:46:09 +00:00