setMaxPosition method
- int position
Truncate the Decimal on the left to a particular position, deleting digits if necessary. This is useful for, e.g. abbreviating years ("2022" -> "22")
See the Rust documentation for set_max_position
for more information.
Implementation
void setMaxPosition(int position) {
_icu4x_Decimal_set_max_position_mv1(_ffi, position);
}