Commit d0c116f4 authored by Sergey Konovalov's avatar Sergey Konovalov Committed by GitHub

fix Bug 32857 parse 123,45%

parent efe1b8fc
......@@ -3042,9 +3042,8 @@ FormatParser.prototype =
bThouthand = true;
}
}
if (AscCommon.isNumber(val)) {
var dNumber = parseFloat(val);
if (!isNaN(dNumber))
if (g_oFormatParser.isLocaleNumber(val, cultureInfo)) {
var dNumber = g_oFormatParser.parseLocaleNumber(val, cultureInfo);
oRes = { number: dNumber, thouthand: bThouthand };
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment