Files
divkit/test_data/expression_test_data/functions_format.json
T
4eb0da ac77391c38 Number formatter
commit_hash:c5eadf6f87acd513565e1b0410d073c56a9ae85f
2025-08-07 16:48:23 +03:00

35 lines
648 B
JSON
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"cases": [
{
"expression": "@{decimalFormat(1234567.89, '.#')}",
"expected": {
"type": "string",
"value": "1234567.9"
},
"platforms": [
"web"
]
},
{
"expression": "@{decimalFormat(1234567.89, '#,###.#', 'ru-RU')}",
"expected": {
"type": "string",
"value": "1 234 567,9"
},
"platforms": [
"web"
]
},
{
"expression": "@{decimalFormat(1234567.89, '#,###.#', 'en-US')}",
"expected": {
"type": "string",
"value": "1,234,567.9"
},
"platforms": [
"web"
]
}
]
}