Fixed NumericType/NumericValue.

This commit is contained in:
GoldenCrystal
2014-11-05 23:10:22 +01:00
parent 85ba8f9c68
commit 083c992dff
5 changed files with 24 additions and 5 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ namespace System.Unicode
public override string ToString()
{
return !IsDefaultValue ? Numerator.ToString() + "/" + Denominator.ToString() : string.Empty;
return !IsDefaultValue ? Denominator != 1 ? Numerator.ToString() + "/" + Denominator.ToString() : Numerator.ToString() : string.Empty;
}
public bool Equals(UnicodeRationalNumber other)
Binary file not shown.