Rounds a Number.



  • Number subject - The number to round.
  • Number places - The number of places to round to. If positive, that many decimal places are used to round to (if applicable). If negative, the rounding is done the opposite way.
  • Number method - The rounding method to use.
    • 0 (default) - Standard rounding will be used (nearest number).
    • 1 - All numbers will be rounded down.
    • 2 - All numbers will be rounded up.


  • Number - The rounded number.

Returns subject rounded to a specific number of places.

ptpscript/functions/round.txt · Last modified: 2007/01/24 10:15
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki