Run Code | API | Code Wall | Misc | Feedback | Login | Theme | Privacy | Patreon |
Floating point inspectionfloat: std::round_to_nearest: Rounding toward nearest representable value Real type fulfills the requirements of IEEE 754 standard Sign bit: 1 bit Exponent width: 8 bits (exponent bias = 128) Significand precision: 24 bits (23 bits stored) double: std::round_to_nearest: Rounding toward nearest representable value Real type fulfills the requirements of IEEE 754 standard Sign bit: 1 bit Exponent width: 11 bits (exponent bias = 1024) Significand precision: 53 bits (52 bits stored) 0: + 01111011: 2^(123-128) = 2^-5 10011001100110011001101: 1.10011001100110011001101 Value = 0.10000000149 0: + 01111100: 2^(124-128) = 2^-4 10011001100110011001101: 1.10011001100110011001101 Value = 0.20000000298 0: + 01111101: 2^(125-128) = 2^-3 00110011001100110011010: 1.00110011001100110011010 Value = 0.30000001192 0: + 01111111011: 2^(1019-1024) = 2^-5 1001100110011001100110011001100110011001100110011010: 1.1001100110011001100110011001100110011001100110011010 Value = 0.10000000000000000555 0: + 01111111100: 2^(1020-1024) = 2^-4 1001100110011001100110011001100110011001100110011010: 1.1001100110011001100110011001100110011001100110011010 Value = 0.20000000000000001110 0: + 01111111101: 2^(1021-1024) = 2^-3 0011001100110011001100110011001100110011001100110011: 1.0011001100110011001100110011001100110011001100110011 Value = 0.29999999999999998890 |
λ
.NET NoSQL database for rapid development
|