summary refs log tree commit diff
path: root/crypto/src/math/ec/abc/SimpleBigDecimal.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/math/ec/abc/SimpleBigDecimal.cs')
-rw-r--r--crypto/src/math/ec/abc/SimpleBigDecimal.cs9
1 files changed, 4 insertions, 5 deletions
diff --git a/crypto/src/math/ec/abc/SimpleBigDecimal.cs b/crypto/src/math/ec/abc/SimpleBigDecimal.cs
index d5664dbfd..c69d02f0c 100644
--- a/crypto/src/math/ec/abc/SimpleBigDecimal.cs
+++ b/crypto/src/math/ec/abc/SimpleBigDecimal.cs
@@ -196,19 +196,18 @@ namespace Org.BouncyCastle.Math.EC.Abc
 			}
 			string leftOfPoint = floorBigInt.ToString();
 
-			char[] fractCharArr = new char[scale];
-				string fractStr = fract.ToString(2);
+			char[] rightOfPoint = new char[scale];
+			string fractStr = fract.ToString(2);
 			int fractLen = fractStr.Length;
 			int zeroes = scale - fractLen;
 			for (int i = 0; i < zeroes; i++)
 			{
-				fractCharArr[i] = '0';
+				rightOfPoint[i] = '0';
 			}
 			for (int j = 0; j < fractLen; j++)
 			{
-				fractCharArr[zeroes + j] = fractStr[j];
+				rightOfPoint[zeroes + j] = fractStr[j];
 			}
-			string rightOfPoint = new string(fractCharArr);
 
 			StringBuilder sb = new StringBuilder(leftOfPoint);
 			sb.Append(".");