Thread
:
Float precision
View Single Post
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
08-14-2018 , 04:38 Re: Float precision
#
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.
__________________
AMXXPawn for VSCode
|
AlliedModders Dark Theme
|
Syntax Highlight for [ code ] blocks
In memory of Papa Franku
Last edited by klippy; 08-14-2018 at
04:40
.
klippy
View Public Profile
Send a private message to klippy
Find More Posts by klippy