roundValue

open fun roundValue(value: Double, decimalDigits: Int): Double

Method to round a value

Return

value rounded with decimal digits inserted

Parameters

value

: value to round

decimalDigits

: number of digits to round final value

Throws

if decimalDigits is negative