ronnyandre / number-formatter Goto Github PK
View Code? Open in Web Editor NEWSimple number formatting plugin for ExpressionEngine
Simple number formatting plugin for ExpressionEngine
Number Formatter lets you format numbers with custom amount of decimals, custom decimal and thousands separators. ===================================================== Basic Usage ===================================================== To format a number, use the following code: {exp:number_formatter}1000000{/exp:number_formatter} Returns 1 000 000 Defaults: Number of decimals is 0. Decimal point separator is comma. Thousands separator is space. Overriding the defaults: {exp:number_formatter decimals="2" decimal_point="," thousands_separator="."}1000000{/exp:number_formatter} Returns 1.000.000,00 You can prefix and suffix text if you'd like: {exp:number_formatter decimals="2" decimal_point="," thousands_separator="." prefix="$" suffix=" (USD)"}1000000{/exp:number_formatter} Returns $1.000.000,00 (USD) ===================================================== Parameters ===================================================== decimals Number of decimals in number. decimal_point Character to use as decimal point. thousands_sep Character to use as thousands separator. prefix Text to prefix the number formatting. suffix Text to suffix the number formatting. ===================================================== Changelog ===================================================== 23/11/2011 - 0.2 Added parameters for prefix and suffix. 23/11/2011 - 0.1 Initial (basic) version.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.