You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This discussion was converted from issue #4094 on May 17, 2024 10:58.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I don't know if it's really a bug or something else, but when I use the format_currency filter, the wrong rounding_mode is applied.
{{ app.request.locale }} {{ '36.625000'|format_currency('EUR') }} {{ '36.625000'|format_currency('EUR', {rounding_mode:'halfup'} }}
Results:
fr 36,62 € 36,63 €
In France, the rounding rule is halfup.
My PHP server returns "en_US_POSIX" when I run
echo locale_get_default();
but the request must select the current user locale right?Beta Was this translation helpful? Give feedback.
All reactions