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

long double multiplication is way wrong (kholmz)

$
0
0
I'm trying to multiple two variables and am having issues. If I: long double tempa = 0.833333333333333; long double tempb = 25000.0; long double tempc = tempa * tempb; The result is wrong. tempc = 8898.66567325592 But if I do this the result is correct:..

Viewing all articles
Browse latest Browse all 1508

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>