round

fun round(block: () -> Double): Double(source)
fun round(block: () -> Float): Float(source)
fun round(block: () -> BigDecimal): BigDecimal(source)

Rounds the value returned by the function block.

Return

A rounded value.

Parameters

block

A function block.


abstract fun round(value: Double): Double(source)
abstract fun round(value: Float): Float(source)
abstract fun round(value: BigDecimal): BigDecimal(source)

Rounds the given value.

Return

A rounded value.

Parameters

value

A value.