int :round ( float $NUMBER )
Returns the specified number rounded to the nearest integer.
Half-values (X.5
) are rounded farther from zero (+5.5 becomes +6, and -5.5 becomes -6). 1)
# :round example :set &flo f'' :write s'Gibe number: ' :read &flo :writeln s'Rounded number: ' :round $flo :writeln s'Rounded negative: ' :round :sub i0 $flo
wikistrona zmodyfikowana 2014/0916/1551