Update explicit-accuracy-for-math-round.md

This commit is contained in:
T045TN1NJ4 2025-03-08 15:15:43 -05:00 committed by GitHub
parent 93111bb534
commit fd742dcca5
Signed by: DevComp
GPG key ID: B5690EEEBB952194

View file

@ -11,7 +11,7 @@ The motivation for this proposal lies solely in improving user convenience. Albe
1. It's a 'one-more-than-necessary' utility users have to carry around
2. Though the difference is negligible in most scenarios, it's computationally slower, even in `native`
Allowing users to specify to what degree of accuracy `math.round` should round to feels like a very simple and appropriate expansion of the standard library. The change is also inherently a performance microoptimization [thanks to the fastcall op].
The change, as proposed below, feels like a very simple and appropriate expansion of the standard library, and is inherently a performance microoptimization [thanks to the fastcall op].
## Design
As of writing this, a well-rounded implementation of rounding to a decimal place is something like so: