Pretty sure, one must have used the datatype ‘float’ numerous number of times since the day one has started programming. However, there are many times, when we mishandle floats and doubles, or get unexpected results while using float variables or find ourselves being perplexed while using floating points. This is because of the very nature of floating points in binary.
Generally in our day to day mathematics, we work on decimal...
Understanding float datatype in C
Binary Representation of Float
Generally in our day to day mathematics, we work on decimal...
Understanding float datatype in C