Commit Graph
2 Commits
Author SHA1 Message Date
kylewcharters@gmail.com aef30ca4a1 fix: correct method examples in Range docs to use from/to/max instead of min
The documentation examples for the `from`, `to`, and `max` properties of the Range class were incorrectly calling `.min` instead of the actual method names. Updated the code samples in the `from`, `to`, and `max` sections to use the correct method calls, ensuring the examples match the documented property names and produce the expected output values.
2017-10-23 17:48:43 +00:00
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