toggle menu
KAHelpers
androidJvm
switch theme
search in API
numbers
/
dev.funkymuse.numbers
/
round
round
fun
Number
.
round
(
@
IntRange
(
from
=
1
)
decimalCount
:
Int
)
:
String
fun
BigDecimal
.
round
(
precision
:
Int
=
1
,
roundingMode
:
RoundingMode
=
RoundingMode.HALF_UP
)
:
BigDecimal
fun
MathContext
.
round
(
n
:
BigDecimal
)
:
BigDecimal
fun
Double
.
round
(
mathContext
:
MathContext
=
MathContext(1)
)
:
BigDecimal
fun
Float
.
round
(
mathContext
:
MathContext
=
MathContext(1)
)
:
BigDecimal
fun
Double
.
round
(
precision
:
Int
=
1
,
roundingMode
:
RoundingMode
=
RoundingMode.HALF_UP
)
:
BigDecimal
fun
Float
.
round
(
precision
:
Int
=
1
,
roundingMode
:
RoundingMode
=
RoundingMode.HALF_UP
)
:
BigDecimal
fun
MathContext
.
round
(
n
:
Double
)
:
BigDecimal
fun
MathContext
.
round
(
n
:
Float
)
:
BigDecimal