Try ${value?c}
that will format the number as a computer readable number.
Freemarker casts negative integer in wrong way
-
13-06-2023 - |
Question
I have found pretty interesting thing Using java+spring+freemarker
From java controller I pass '-1' as Integer value. From time to time in freemarker template after ${value} I am getting '1-' instead of '-1' This happens randomly from time to time.
Any ideas why this happens? Freemarker bug?
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow