DynamicBuilders.DynamicFloat.FloatFormatter


class DynamicBuilders.DynamicFloat.FloatFormatter


Allows formatting DynamicFloat into a DynamicString.

Summary

Nested types

Builder to create FloatFormatter objects.

Public functions

@IntRange(from = 0) Int

Returns the maximum number of digits allowed in the fraction portion of a number.

@IntRange(from = 0) Int

Returns the minimum number of digits allowed in the fraction portion of a number.

@IntRange(from = 0) Int

Returns the minimum number of digits allowed in the integer portion of a number.

Boolean

Returns whether digit grouping is used or not.

Public functions

getMaxFractionDigits

Added in 1.0.0
fun getMaxFractionDigits(): @IntRange(from = 0) Int

Returns the maximum number of digits allowed in the fraction portion of a number.

getMinFractionDigits

Added in 1.0.0
fun getMinFractionDigits(): @IntRange(from = 0) Int

Returns the minimum number of digits allowed in the fraction portion of a number.

getMinIntegerDigits

Added in 1.0.0
fun getMinIntegerDigits(): @IntRange(from = 0) Int

Returns the minimum number of digits allowed in the integer portion of a number.

isGroupingUsed

Added in 1.0.0
fun isGroupingUsed(): Boolean

Returns whether digit grouping is used or not.