Skip to content

Commit

Permalink
use Number instead of parseFloat
Browse files Browse the repository at this point in the history
  • Loading branch information
kof committed Sep 26, 2010
1 parent 131788f commit 7d92538
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/argsparser.js
Expand Up @@ -23,7 +23,7 @@ exports.parse = function( args ) {
} else if ( arg === "true" ) {
arg = true;
} else if ( !isNaN( arg ) ) {
arg = parseFloat( arg );
arg = Number( arg );
}

if ( curValType === "boolean" ) {
Expand Down

0 comments on commit 7d92538

Please sign in to comment.