Skip to content

tasofen/number_format-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ported PHP function "number_format" in JavaScript

Build Status

npm npm npm

Install

NodeJS

npm i number_format-php --save

Web

<script src="number-format.js"></script>

Usage

NodeJS

var number_format = require("number_format-php");
number_format(1234567.125, 2, ".", " "); // 1 234 567.13

Web

number_format(1234567.125, 2, ".", " "); // 1 234 567.13

// AMD
requirejs(["helper/number_format"], function(number_format) {
  number_format(1234567.125, 2, ".", " "); // 1 234 567.13
});

About

Ported PHP function "number_format" in JavsScript

Resources

Stars

Watchers

Forks

Packages

No packages published