nint (<num>)
The nearest (i.e. rounded) integer value.
<num>
The value to be rounded.
The following returns the value 5.
numeric i = nint(5)
The following returns the value 5.
i = nint(5.01)
The following returns the value 6.
i = nint(5.5)
The following returns the value 6.
i = nint(5.9)
The following returns the value -6.
i = nint(-5.9)
Functions: |