mirror of
https://codeberg.org/ziglings/exercises.git
synced 2026-07-28 18:25:16 +00:00
Use significand terminology
As exercise 60 says: Donald Knuth would not be happy with us calling this mantissa. Proposing to use the less amiguous term significand
This commit is contained in:
@@ -55,7 +55,7 @@ comptime {
|
|||||||
const Float = packed union(u16) {
|
const Float = packed union(u16) {
|
||||||
value: f16,
|
value: f16,
|
||||||
bits: packed struct(u16) {
|
bits: packed struct(u16) {
|
||||||
mantissa: u10,
|
significand: u10,
|
||||||
exponent: u5,
|
exponent: u5,
|
||||||
sign: u1,
|
sign: u1,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user