Add Number::format with settings to configure decimal point and thousands separators

Created on 3 March 2006, over 19 years ago
Updated 25 May 2025, 12 days ago

PHP provides the function number_format to format numbers with decimal points and thousands separator. Actually, if there was a way, in Drupal, to customize this function at site/user levels... :-)

I believe this is not so difficult to implement. All we needs is add a couple of fields to allow admins/users customize these options (decpoint/thsndsep) to admin/settings and user/edit, maybe near the date format?

Does it worth to roll a patch for 4.7?

Feature request
Status

Active

Version

11.0 🔥

Component

base system

Created by

🇪🇸Spain markus_petrux

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024