getPercentualizedValue

open fun getPercentualizedValue(startValue: Double, percentualizer: Double): Double

Method to percentualize a value

Return

percentualized value as double e.g.

100 +10 110
100 -10 90

Parameters

startValue

: value to percentualize

percentualizer

: percent slice to add or remove from start value


open fun getPercentualizedValue(startValue: Double, percentualizer: Double, decimalDigits: Int): Double

Method to percentualize a value

Return

percentualized value as double e.g.

101 +2.5 103.52 2
100 -10 98.47 2

Parameters

startValue

: value to percentualize

percentualizer

: percent slice to add or remove from start value

decimalDigits

: number of digits to round final value