Name | round() |
||
---|---|---|---|
Examples |
x = 9.2 rx = round(x) # Sets 'rx' to 9 y = 9.5 ry = round(y) # Sets 'ry' to 10 z = 9.9 rz = round(z) # Sets 'rz' to 10 | ||
Description | Calculates the integer closest to the n parameter. For example, round(133.8) returns the value 134. | ||
Syntax | round(n) | ||
Parameters |
| ||
Related |
floor() ceil() |
Updated on Mon Sep 21 15:53:25 2020.
If you see any errors or have comments, please let us know.
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License