round method

void round(
  1. int position
)

Round the number at a particular digit position.

This uses half to even rounding, which resolves ties by selecting the nearest even integer to the original value.

See the Rust documentation for round for more information.

Implementation

void round(int position) {
  _icu4x_Decimal_round_mv1(_ffi, position);
}