Commit 95f82a0e authored by Sergey.Konovalov's avatar Sergey.Konovalov Committed by Alexander.Trofimov

ошибка при вводе 1e-234 получалось 1e-0234

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@50504 954022d7-b5bf-4e40-9824-e11837661b57
parent 08956763
......@@ -2245,11 +2245,12 @@ function DecodeGeneralFormat_Raw(val, nValType, dDigitsCount)
{
bContinue = false;
var nRealExp = gc_nMaxDigCount + parts.exponent;//nRealExp == 0, при 0,123
var nRealExpAbs = Math.abs(nRealExp);
var nExpMinDigitsCount;//число знаков в формате 'E+00'
if(Math.abs(nRealExp) < 100)
if(nRealExpAbs < 100)
nExpMinDigitsCount = 4;
else
nExpMinDigitsCount = 2 + nRealExp.toString().length;
nExpMinDigitsCount = 2 + nRealExpAbs.toString().length;
var suffix = "";
if (nRealExp > 0)
......
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