Simple question about NetStats PacketLossPercent - 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: Simple question about NetStats PacketLossPercent (
/showthread.php?tid=519468)
Simple question about NetStats PacketLossPercent -
K9IsGodly - 14.06.2014
Why in the example on the wiki:
https://sampwiki.blast.hk/wiki/NetStats_PacketLossPercent
Do they have it so it displays .2f percent. What is the point of the .2 in this particular situation? In game, the command just displays 0.00 meaning I'm fully synced, hence the reason I don't understand what the .2 is doing.
Re: Simple question about NetStats PacketLossPercent -
RenovanZ - 14.06.2014
Mean, it will only display 2 digits number after the .
Re: Simple question about NetStats PacketLossPercent -
RajatPawar - 14.06.2014
It's not related to the network functions, it's related to format. To build upon the above post, a number after (to the right of) the dot specifies the amount of decimal digits to show, while a number before (to the left of) the dot specifies the padding to be given.