Package fluent.functions.icu.numeric
Class DecimalFn
java.lang.Object
fluent.functions.icu.numeric.DecimalFn
- All Implemented Interfaces:
fluent.functions.FluentFunction
DECIMAL() : Format a number, optionally using a specific format pattern.
Non-numeric values are passed through. At least one value is required.
This behaves identically to NUMBER() if no pattern is specified.
Options:
pattern:Decimal format pattern (as per DecimalFormat class)minimumFractionDigits:integer value (0 is default)
Example: DECIMAL($num, pattern:"###.00"
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
DecimalFn
public DecimalFn()
-
-
Method Details
-
name
- Specified by:
namein interfacefluent.functions.FluentFunction
-
apply
public List<fluent.types.FluentValue<?>> apply(fluent.functions.ResolvedParameters params, fluent.bundle.resolver.Scope scope) - Specified by:
applyin interfacefluent.functions.FluentFunction
-