• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] Rounding float to make it divisible by specified value.
#6
I suggest you use modulo for this.

Modulo operator will return 0 when it matches a value that is dividable with 1.75 (or 1.606);

https://en.wikipedia.org/wiki/Modulo_operation

In pawn it looks like this: https://forum.sa-mp.com/showthread.php?t=485069

[Image: l3vgZTB.png]
Away
  Reply


Messages In This Thread
RE: Rounding float to make it divisible by specified value. - by denNorske - 2019-04-15, 07:55 AM

Forum Jump: