diff --git a/test.html b/test.html
index 9d24666..b04eead 100644
--- a/test.html
+++ b/test.html
@@ -46,6 +46,7 @@
});
equal ( Tester.to ( -50.999845 ), '-51' );
+ equal ( Tester.to ( -0.0000001 ), '0' );
});
test( "Testing mark and thousand with longer strings", function(){
diff --git a/wNumb.js b/wNumb.js
index ce0b876..722b629 100644
--- a/wNumb.js
+++ b/wNumb.js
@@ -73,7 +73,7 @@ var
// Rounding away decimals might cause a value of -0
// when using very small ranges. Remove those cases.
- if ( decimals && parseFloat(input.toFixed(decimals)) === 0 ) {
+ if ( decimals !== false && parseFloat(input.toFixed(decimals)) === 0 ) {
input = 0;
}