diff options
| author | Matthew Lugg <mlugg@mlugg.co.uk> | 2025-06-17 11:02:03 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-17 11:02:03 +0100 |
| commit | 561fdd0ed3d93a373f126f4df01caf813ad32fec (patch) | |
| tree | 285a0c41e4951ff6eb503b65dff92b6020538355 /lib/std/math.zig | |
| parent | 080ee25ecf1991d85038716ca6199ae8dc31c8f5 (diff) | |
| parent | e498d8da3c7a957fe3754db8f3517d71f7fc650e (diff) | |
| download | zig-561fdd0ed3d93a373f126f4df01caf813ad32fec.tar.gz zig-561fdd0ed3d93a373f126f4df01caf813ad32fec.zip | |
Merge pull request #24188 from mlugg/intfromfloat-safety
Absorb std.math.big.rational logic into std.math.big.int; fix `@intFromFloat` safety check
Diffstat (limited to 'lib/std/math.zig')
| -rw-r--r-- | lib/std/math.zig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/std/math.zig b/lib/std/math.zig index 5ffa7f0509..1cd9a83a14 100644 --- a/lib/std/math.zig +++ b/lib/std/math.zig @@ -45,6 +45,7 @@ pub const rad_per_deg = 0.017453292519943295769236907684886127134428718885417254 /// 180.0/pi pub const deg_per_rad = 57.295779513082320876798154814105170332405472466564321549160243861; +pub const FloatRepr = float.FloatRepr; pub const floatExponentBits = float.floatExponentBits; pub const floatMantissaBits = float.floatMantissaBits; pub const floatFractionalBits = float.floatFractionalBits; |
