round( number )
public
Hide source
# File lib/rexml/functions.rb, line 396 def Functions::round( number ) number = number(number) begin neg = number.negative? number = number.abs.round(half: :up) neg ? -number : number rescue FloatDomainError number end end