getRoundNumber

fun getRoundNumber(measurement: Measurement, locale: Locale = Locale.getDefault()): CharSequence
fun getRoundNumber(value: Number, locale: Locale = Locale.getDefault()): CharSequence


fun getRoundNumber(value: CharSequence, locale: Locale = Locale.getDefault()): CharSequence

Return a round float value with 2 decimals

BE CAREFUL: THE METHOD DOESN'T CHECK THE NUMBER AS A NUMBER.

Return

round value with 2 decimals or 0 if the value is empty or equals to 0

Parameters

value

float value