Files
gulevsky 1426d82371 add decimalFormat function support
commit_hash:30dcfc43ef97eaeda0466e23327ea6f5daf83020
2025-08-28 17:08:53 +03:00

41 lines
750 B
JSON
Raw Permalink 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": [
"android",
"web",
"ios"
]
},
{
"expression": "@{decimalFormat(1234567.89, '#,###.#', 'ru-RU')}",
"expected": {
"type": "string",
"value": "1 234 567,9"
},
"platforms": [
"android",
"web",
"ios"
]
},
{
"expression": "@{decimalFormat(1234567.89, '#,###.#', 'en-US')}",
"expected": {
"type": "string",
"value": "1,234,567.9"
},
"platforms": [
"android",
"web",
"ios"
]
}
]
}