Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 847 Bytes

File metadata and controls

36 lines (29 loc) · 847 Bytes

floatify . Common helper to floatify strings

Build Status

Usage

Example

var floatify = require("floatify")
floatify.floatify("123123.245346556")
>> 123123.245346556
floatify.floatify("123.242,5346556")
>> 123242.5346556
floatify.floatify("123,242.5346556")
>> 123242.5346556

Run Example @runkit: https://runkit.com/embed/j8f4v433l1wh

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 run test or yarn run test