to

fun to(precision: Int, mode: RoundingMode = defaultRoundingMode): PreciseRounding(source)

Creates a PreciseRounding instance.

Return

A PreciseRounding object.

Parameters

precision

The precision scale to round a value.

mode

The rounding mode policy to round the number.