Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 39796

Conversion of float to long int

$
0
0

In a problem on some other judge, Im required to convert a floating point number to the long integer data type. The floating point number is 400330.096752 and on conversion to long int by explicit type casting it becomes 400329. How do i resolve this error


Viewing all articles
Browse latest Browse all 39796

Trending Articles



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