|
@@ -2,7 +2,7 @@ using System.Globalization;
|
|
|
|
|
|
namespace System
|
|
|
{
|
|
|
- struct Float : float, IFloating, ISigned, IFormattable, IHashable, IEquatable<float>, IOpComparable, IOpNegatable, ICanBeNaN
|
|
|
+ struct Float : float, IFloating, ISigned, IFormattable, IHashable, IEquatable<float>, IOpComparable, IOpNegatable, IOpAddable, IOpSubtractable, ICanBeNaN
|
|
|
{
|
|
|
public const float MinValue = (float)-3.40282346638528859e+38;
|
|
|
public const float Epsilon = (float)1.4e-45;
|
|
@@ -24,6 +24,16 @@ namespace System
|
|
|
return (float)value;
|
|
|
}
|
|
|
|
|
|
+ public static Self operator+(Self lhs, Self rhs)
|
|
|
+ {
|
|
|
+ return (SelfBase)lhs + (SelfBase)rhs;
|
|
|
+ }
|
|
|
+
|
|
|
+ public static Self operator-(Self lhs, Self rhs)
|
|
|
+ {
|
|
|
+ return (SelfBase)lhs - (SelfBase)rhs;
|
|
|
+ }
|
|
|
+
|
|
|
/*public bool IsNegative
|
|
|
{
|
|
|
get
|