Quantcast
Channel: MPLAB XC16
Viewing all articles
Browse latest Browse all 1508

Problem with float multiplication (stoyanoff)

$
0
0
Greatings! I`m using dsPIC30F5015 and I have small problem. I have a logic which multiplies floats.For example: float val1=268.0;
float val2=0.0125;
val1=val1*val2; The problem is I`m expecting result 3.35, but there is 3.3500001 in val1! Wher..

Viewing all articles
Browse latest Browse all 1508

Trending Articles