Number ViewHelper for TYPO3 with automatic configuration
Description: This ViewHelper uses the given locale in the site configuration
- TYPO3 >= v9
- Configured site management
- PHP module
- If set, it removes the decimals when the value is a number without decimal values
You are missing a backup and restore of the locale here, currently this viewhelper is not side-effect free due to this.
Also maybe this could be achieved with
NumberFormatterinstead which would allow retrieving the info without temporary locale switch.