floatify . Common helper to floatify strings
New optional toggle
Since v1.4.0 you have a 2nd optional parameter to prefer decimal separator instead of thousands separators (old standard, new default behaviour. See Issue #8 and test/floatify.js for details)
BC Break
Since v1.3.0 floatify exports as function!
var floatify = // old: floatify.floatify("123123.245346556")// new:
Usage
Example
var floatify = >> 123123245346556>> 1232425346556>> 1232425346556>> 1232421237568
for more detailed examples see Mocha Testcases in test/floatify.js
Installation with npm
with npm
npm i floatify
with yarn
yarn add floatify
Clone repo
via ssh
git clone git@github.com:pocketrocket/floatify
via https
git clone https://github.com/pocketrocket/floatify.git
Testing
Basic testing done, use npm test
or yarn test