Skip to main content

xpath_round

Function xpath_round 

Source
pub fn xpath_round(x: Decimal) -> Decimal
Expand description

XPath fn:round — closest integer, ties toward +∞.

floor(x + 0.5). Saturates: if x + 0.5 overflows, returns x.