diff options
author | Dave Gauer <dave@ratfactor.com> | 2021-11-07 20:52:39 -0500 |
---|---|---|
committer | Dave Gauer <dave@ratfactor.com> | 2021-11-07 20:52:39 -0500 |
commit | d1e684126176214b65399034c96b6f52189b2b72 (patch) | |
tree | 5866b7f3a15945a73b946443fbd490fc8f4cc2d8 /exercises/060_floats.zig | |
parent | 266449b1dd8e5e89887aa84c2d10270cdd6c7936 (diff) | |
parent | dedd787f2dd0badc03caa1299adaf57eaeaae156 (diff) | |
download | ziglings-d1e684126176214b65399034c96b6f52189b2b72.tar.gz ziglings-d1e684126176214b65399034c96b6f52189b2b72.tar.bz2 ziglings-d1e684126176214b65399034c96b6f52189b2b72.tar.xz ziglings-d1e684126176214b65399034c96b6f52189b2b72.zip |
Merge branch 'main' of github.com:ratfactor/ziglings into main
Diffstat (limited to 'exercises/060_floats.zig')
-rw-r--r-- | exercises/060_floats.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/exercises/060_floats.zig b/exercises/060_floats.zig index 6ff7b50..a223257 100644 --- a/exercises/060_floats.zig +++ b/exercises/060_floats.zig @@ -59,7 +59,7 @@ pub fn main() void { // | exponent significand // | // sign -// +// // This example is the decimal number 3.140625, which happens to // be the closest representation of Pi we can make with an f16 // due to the way IEEE-754 floating points store digits: @@ -86,6 +86,6 @@ pub fn main() void { // // Fun fact: sometimes you'll see the significand labeled as a // "mantissa" but Donald E. Knuth says not to do that. -// +// // C compatibility fact: There is also a Zig floating point type // specifically for working with C ABIs called c_longdouble. |