Thread: Float precision
View Single Post
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 08-14-2018 , 04:38   Re: Float precision
Reply With Quote #2

You can't, that's how IEEE754 single precision floating point numbers work, in every language. When formatting strings though you can use %.2f instead of just %f to display 2 digits after the decimal point, for example.
__________________

Last edited by klippy; 08-14-2018 at 04:40.
klippy is offline