summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorGravatar Checkmate50 <dgeisler50@gmail.com>2015-10-14 13:02:48 -0600
committerGravatar Checkmate50 <dgeisler50@gmail.com>2015-10-14 13:02:48 -0600
commita3b2bfa16f991f4d5f844b6d18e836e57b4195a1 (patch)
treef765fbfaa513306a34aac8811a2749051718350a /Source
parent0324757fb1a12d76861a51be988690bf8de75f64 (diff)
Floating point constants given as integers are now translated correctly
Diffstat (limited to 'Source')
-rw-r--r--Source/Basetypes/BigFloat.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Basetypes/BigFloat.cs b/Source/Basetypes/BigFloat.cs
index 9e798959..bbc39db4 100644
--- a/Source/Basetypes/BigFloat.cs
+++ b/Source/Basetypes/BigFloat.cs
@@ -146,6 +146,8 @@ namespace Microsoft.Basetypes
this.mantissa = 0;
this.isDec = true;
this.dec_value = dec_value;
+ if (this.dec_value.IndexOf(".") == -1)
+ this.dec_value += ".0"; //Assures that the decimal value is a "real" number
}
private BIM maxMantissa()