Fixed Radix100.ToString() in the case of exponents < -99
authorMichael Welch <michaelgwelch@gmail.com>
Thu, 1 Feb 2007 03:13:21 +0000 (03:13 +0000)
committerMichael Welch <michaelgwelch@gmail.com>
Thu, 1 Feb 2007 03:13:21 +0000 (03:13 +0000)
TiBasicRuntime/Radix100.cs

index 57e3a5b..a46cb1c 100644 (file)
@@ -355,7 +355,8 @@ namespace TiBasicRuntime
             }
 
             bldr.Append("E");
-            if (decimalExponent > 99) bldr.Append(decimalExponent.ToString("+**;-**"));
+            if (decimalExponent > 99) bldr.Append("+**");
+            else if (decimalExponent < -99) bldr.Append("-**");
             else bldr.Append(decimalExponent.ToString("+00;-00"));
             return bldr.ToString();