SA-MP Forums Archive
Maximum float value? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Maximum float value? (/showthread.php?tid=575305)



Maximum float value? - MP2 - 25.05.2015

What is the highest value possible for a float value in PAWN?


Re: Maximum float value? - Macluawn - 25.05.2015

Due to how float values work, its safe to say infinite. But precision is lost with higher values.

However, if you dont want to lose any data, then its 2^23. the other 9 bits are used for the exponent and sign.


Re: Maximum float value? - Abagail - 25.05.2015

I believe this should help:
https://sampforum.blast.hk/showthread.php?tid=352072

more specifically(edit: this is basically what Mauclaw said above)
http://forum.sa-mp.com/showpost.php?...51&postcount=5


Re: Maximum float value? - Djole1337 - 25.05.2015

http://www.compuphase.com/pawn/Float...nt_Support.pdf