${(986849583 878964016)?c} -
By default, FreeMarker uses when printing numbers. If your system is set to a US locale, a large number might be rendered with commas (e.g., 986,849,583... ), which will break JSON structures or JavaScript code. Without ?c (Human) With ?c (Computer) Output 986,849,583,878,964,016 986849583878964016 Locale Depends on user/server settings Independent of all locale settings Use Case Reports, Web pages, Emails JSON, JavaScript, Java, XML Common Use Cases for This Specific Format
This guide explains how to use the to format the specific expression ${(986849583 878964016)?c} for use in computer-readable outputs like JSON or JavaScript. The Core Expression Breakdown
The expression provided is a . It takes a large number and prepares it for "computer audience" consumption. ${(986849583 878964016)?c}
Ensures long IDs in a JSON object remain valid numbers without thousand-separators that would cause parsing errors.
When building dynamic links where the ID must be a continuous string of digits. Advanced Tips Expressions - Apache FreeMarker Manual By default, FreeMarker uses when printing numbers
This is a crucial built-in that ensures the number is formatted as a "computer language" literal rather than for human reading. Why Use ?c ?
This identifies a dynamic placeholder that FreeMarker will replace with a calculated value in the final output. Without
This is a long integer (likely a 64-bit ID or timestamp) that needs to be rendered without human-centric formatting.