소스 검색

* don't "round" 0.0 when converting to a string (mantis #12202)

git-svn-id: trunk@11823 -
Jonas Maebe 17 년 전
부모
커밋
b2531e9883
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      rtl/inc/real2str.inc

+ 2 - 1
rtl/inc/real2str.inc

@@ -367,7 +367,8 @@ begin
           for fracCount := 1 to currPrec do
             factor := factor * 10.0;
           corrval := corrval / factor;
-          d:=d+roundCorr;
+          if (d<>0.0) then
+            d:=d+roundCorr;
           if d >= corrVal then
             d := d + corrVal;
           if int(d) = 1 then