- Preparing search index...
- The search index is not available
cardstack
Function handleSignificantDecimalsWithThreshold
- handleSignificantDecimalsWithThreshold(value: Value, decimals: number, buffer?: number, threshold?: string): string
-
Parameters
-
value: Value
-
decimals: number
-
buffer: number = 3
-
threshold: string = '0.0001'
Returns string
If
handleSignificantDecimals(value, decimals, buffer)
returns a value greater than the threshold, returns the value. Otherwise returns< ${threshold}
.See
handleSignificantDecimals