We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Format numbers?

How Do I?

wbjp's avatar
wbjp
89 posts
8 years ago
wbjp's avatar wbjp

Hi. I am wondering how I can easily format numbers ( eg. from 1000000 to 1,000,000) in my templates? It don’t think there are any plugins for EE3 that do this are there?

       
James Mathias's avatar
James Mathias
225 posts
8 years ago
James Mathias's avatar James Mathias

Hi,

There doesn’t appear to be a current plugin for use with version 3. But, it should be a difficult plugin to write. You can reference the plugin docs here: https://docs.expressionengine.com/latest/development/plugins.html

       
TJ Draper's avatar
TJ Draper
222 posts
8 years ago
TJ Draper's avatar TJ Draper

The Math plugin can format numbers with thousands separator, decimal points, etc. https://github.com/caddis/math

       
wbjp's avatar
wbjp
89 posts
8 years ago
wbjp's avatar wbjp

The Caddis Math plugin formats numbers nicely. Many thanks.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.