get Round Number
fun getRoundNumber(measurement: Measurement, locale: Locale = Locale.getDefault()): CharSequence
Content copied to clipboard
fun getRoundNumber(value: Number, locale: Locale = Locale.getDefault()): CharSequence
Content copied to clipboard
fun getRoundNumber(value: CharSequence, locale: Locale = Locale.getDefault()): CharSequence
Content copied to clipboard
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