Number Format

Developer

Robert Wallis

3rd Party (Free)

167 downloads (last 90 days)

Creative Commons Attribution

EE Version Support

  • ExpressionEngine 1.x
  • ExpressionEngine 2

Compatibility

If an item is crossed out, it might be untested, not applicable or incompatible. Contact the developer to be sure.

  • Updater
  • Multi Site Manager
  • Stand Alone Entry Form
  • Low Variables
  • Content Elements
  • Better Workflow
  • Matrix
  • Grid
  • Webservice
  • Publisher

Requirements

  • jQuery for the Control Panel

Add-On Type(s)

Plugin

Tags

Exposes PHP's number_format() function via EE tags.

You can read more about PHP’s number_format function here.

{exp:number_format number="1234.56"}

returns: 1,235

{exp:number_format number="1234.56" 
decimals="2" dec_point="." thousands_sep=","}

returns: 1,234.56

{exp:number_format decimals="2"}1234.56{exp:number_format}

returns: 1,234.56

Works in three ways.

  1. Number as a paramater: {exp:number_format number=“1234” decimals=“2”}
  2. Number as tag content: {exp:number_format decimals=“2”}1234{/exp:number_format}
  3. Number as a publish filter: Setup in the control panel.


Warning this plugin is about the simplest plugin you can make.  So I removed support for it.  If it doesn’t work.  Try using the builtin php number_format function <?php echo number_format(1234.56, 2); ?>

Download Number Format

EE Support Downloads Add-On Version Release Date
Not Specified Download 1.3 May 22, 2012
Not Specified Download 1.0

Number Format Links

This entry was created October 1, 2008, 5:20 pm.
This entry was last updated April 11, 2013, 10:06 pm.

Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!

Returns: devot:ee has a 30-day return policy on all commercial add-ons sold through devot-ee.com. If you need to return an add-on, do not go to the developer or the developer's site, but rather visit our returns page at https://devot-ee.com/returns to initiate your return. If you have questions, email support@devot-ee.com.

2 Reviews:

EpicVoyage 06.06.13

EpicVoyage
Rating - {addon_rating_average}

I wish the download link hadn’t disappeared. I need to format a user-input number as a dollar amount, and don’t feel like writing this tonight.

Robert Wallis 04.11.13

Robert Wallis
Rating - {addon_rating_average}

Hi, this is my plugin, and I think it’s stupid.  So if you agree, then we can both laugh about it.  But honestly, it’s the flashlight-app of EE plugins.