scale

fun scale(scale: Long): BigDecimal

Return

a new BigDecimal with same precision and RoundingMode, but new scale applied. If current DecimalMode is null and scale is not null, RoundingMode.ROUND_HALF_AWAY_FROM_ZERO is default

Parameters

scale

a value between 0 and if precision is limited, precision - 1.


val scale: Long