DynamicBuilders.DynamicFloat.FloatFormatter


public class DynamicBuilders.DynamicFloat.FloatFormatter


Allows formatting DynamicFloat into a DynamicString.

Summary

Nested types

Builder to create FloatFormatter objects.

Public methods

@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 methods

getMaxFractionDigits

Added in 1.0.0
public @IntRange(from = 0) int getMaxFractionDigits()

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

getMinFractionDigits

Added in 1.0.0
public @IntRange(from = 0) int getMinFractionDigits()

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

getMinIntegerDigits

Added in 1.0.0
public @IntRange(from = 0) int getMinIntegerDigits()

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

isGroupingUsed

Added in 1.0.0
public boolean isGroupingUsed()

Returns whether digit grouping is used or not.