Permalink
Browse files

fixed formatting of '1000' for nuNumbers

  • Loading branch information...
steven-copley committed Oct 25, 2018
1 parent dfcfc5b commit 5b4d5091f2107d60ce1190d27ed6f9263f27d2af
Showing with 6 additions and 3 deletions.
  1. +6 −3 nuformclass.js
@@ -659,10 +659,13 @@ class nuFormObject {
if(f[0] == 'N'){ //-- number '456.789','N|€ 1,000.00'
var F = nuNumberFormat(f);
v = v.replace(F.decimal, '.');
if(F.decimal.length == 1){
v = v.replace(F.decimal, '.')
}
if(isNaN(Number(v))){return '';}
var o = v.split('.');
var h = nuAddThousandSpaces(o[0], F.separator);

0 comments on commit 5b4d509

Please sign in to comment.