Skip to content

Common helper to floatify strings in JS

License

Notifications You must be signed in to change notification settings

jchiotaka/floatify

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Common helper to floatify strings in JS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%