${(986849583 878964016)?c} [FAST]
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 ${(986849583 878964016)?c}
The expression provided is a . It takes a large number and prepares it for "computer audience" consumption. By default, FreeMarker uses when printing numbers
Ensures long IDs in a JSON object remain valid numbers without thousand-separators that would cause parsing errors. Without
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 is a long integer (likely a 64-bit ID or timestamp) that needs to be rendered without human-centric formatting.
Used when assigning a backend value to a frontend variable: var entityId = ${(986849583 878964016)?c}; .