Quantcast
Channel: C
Viewing all articles
Browse latest Browse all 46

Understanding float datatype in C

$
0
0
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.

Binary Representation of Float



Generally in our day to day mathematics, we work on decimal...

Understanding float datatype in C

Viewing all articles
Browse latest Browse all 46

Trending Articles