+1
0
-1

vector cats

HI,
i am trying to test a float storage library in c on vectorcast. I have set the precision to 8,i enter the value 5.55, i should get 5.55 in expected but i am getting 5.5500002.
In...

Posting in: 

1 Answers:

+1
0
-1

Hello,

Type float does not normally run to 8 digit precision. The mantissa of a float is usually 23 bits. That only allows about 7 digit precision. That is why the value does not show as 5....