-
Notifications
You must be signed in to change notification settings - Fork 0
Flint
A float has its first bit as its sign, the next 8 bits as its exponent and the last remaining 23 bits for the fraction. This is the IEEE 754 standard for 32-bit floats. A flint, on the other hand, has its first bit as its sign, the next 8 bits as its exponent and the last remaining 23 bits for the fraction.
This is the IEEE 754 standard for 32-bit floats. Because of the implicit leading 1 or 0 of floats, the number of decimal digits increase to
A float ranges from
A integer is a whole number with no decimal points. Almost all integers are stored in the complement form, which means that a 32 bit integer ranges from
A flint is a floating integer. It is basically an integer whose exponent can be negative. A flint is split into two parts: 8 bits in complementary form storing the exponent
and 24 bits in complementary form containing the integer value itself.
This means that a flint can range from
A flint ranges from
This means that the range got increased significantly while remaining the same decimal precision as a float. Additionally, an addition of flints is as exact as an addition of integer values.
A double precision flint is a flint that has 64 bits instead of 32 bits. This means that the exponent has 11 bits and the fraction has 53 bits.
This means that the precision of a double precision flint is
A double value has an a precision of around 15.95 digits, just like flint64. The range of double values goes from
This means a flint64 has a muuuuch higher range than a double has, while having the same precision and a greater exactness in calculations.
profit?