mirror of
https://codeberg.org/ziglang/zig
synced 2026-11-18 07:05:05 +00:00
These conversion routines accept a `round` argument to control how the result is rounded and return whether the result is exact. Most callers wanted this functionality and had hacks around it being missing. Also delete `std.math.big.rational` because it was only being used for float conversion, and using rationals for that is a lot more complex than necessary. It also required an allocator, whereas the new integer routines only need to be passed enough memory to store the result.
298 lines
11 KiB
298 lines
11 KiB