FormatRealToString() fix

Made a small change or new addition to the POL Core that makes a difference? You can post the changes here in .patch or .diff file format, for our Dev team to screen and apply to the SVN!

Moderator: POL Developer

Locked
User avatar
andenixa
Grandmaster Poster
Posts: 105
Joined: Tue Nov 09, 2010 1:33 am

FormatRealToString() fix

Post by andenixa »

fixes FormatRealToString(precision)

* where precision is a number of digits after the floating point (versus total number of digits originally)
* uses C++ approach versus old sprintf
* doesn't resort to scientific notation, i.e. 2e+03 which has no use for RPG world.
Attachments
mf_FormatRealToString.patch
(601 Bytes) Downloaded 359 times
Locked