瀏覽代碼

小数位数

MaiXinRong 9 年之前
父節點
當前提交
8d10cd8fc2
共有 2 個文件被更改,包括 22 次插入22 次删除
  1. 11 11
      Units/CalcDecimal.pas
  2. 11 11
      Units/ProjectProperty.pas

+ 11 - 11
Units/CalcDecimal.pas

@@ -93,18 +93,18 @@ end;
 function TDecimal.GetDisplayFormat(ADigit: Integer): string;
 begin
   case ADigit of
-    0: Result := '#';
-    1: Result := '#.#';
-    2: Result := '#.##';
-    3: Result := '#.###';
-    4: Result := '#.####';
-    5: Result := '#.#####';
-    6: Result := '#.######';
-    7: Result := '#.#######';
-    8: Result := '#.########';
-    9: Result := '#.#########';
+    0: Result := '0';
+    1: Result := '0.#';
+    2: Result := '0.##';
+    3: Result := '0.###';
+    4: Result := '0.####';
+    5: Result := '0.#####';
+    6: Result := '0.######';
+    7: Result := '0.#######';
+    8: Result := '0.########';
+    9: Result := '0.#########';
   else
-    Result := '#.##########';
+    Result := '0.##########';
   end;
 end;
 

+ 11 - 11
Units/ProjectProperty.pas

@@ -349,18 +349,18 @@ end;
 function TProjProperties.GetDisplayFormat(ADigit: Integer): string;
 begin
   case ADigit of
-    0: Result := '#';
-    1: Result := '#.#';
-    2: Result := '#.##';
-    3: Result := '#.###';
-    4: Result := '#.####';
-    5: Result := '#.#####';
-    6: Result := '#.######';
-    7: Result := '#.#######';
-    8: Result := '#.########';
-    9: Result := '#.#########';
+    0: Result := '0';
+    1: Result := '0.#';
+    2: Result := '0.##';
+    3: Result := '0.###';
+    4: Result := '0.####';
+    5: Result := '0.#####';
+    6: Result := '0.######';
+    7: Result := '0.#######';
+    8: Result := '0.########';
+    9: Result := '0.#########';
   else
-    Result := '#.##########';
+    Result := '0.##########';
   end;
 end;