Just cast your double to a float. Also notice that the primitive types can NOT store an infinite set of numbers:
String.format Or You can also use numeric positions, for example to switch the parameters around:
How do we change the default currency on freemarker if we have the desired currencycode in string? Perhaps don’t use the ?string.currency -format ...
-
March 10, 2022
- 0 Comments