Archive for the ‘Numeral’ Category

Floating-point: Bit Value of INF, NAN, DEN

September 26th, 2008 | Posted by Mason | No Comments
I have every write a post and mentioned a little bit about the binary format of IEEE 754 in Comparison of Float and Double Precision. In this post I made ...

Performance: encapsulate floating point and built-in tolerance

September 11th, 2008 | Posted by Mason | No Comments
When it comes to the floating point comparison with tolerance, two approaches come into my mind. The first approach is to write inline functions and call them when compare floating point ...

Comparison of Float and Double Precision

September 7th, 2008 | Posted by Mason | 1 Comment
C++ supports two primitive floating point types: float and double. These are based on the IEEE 754 standard, which defines a binary standard for 32-bit floating point and 64-bit double ...