Esempio n. 1
0
 public static bool operator <=(Decimal d1, Decimal d2)
 {
     return(DecCalc.VarDecCmp(ref d1, ref d2) <= 0);
 }
Esempio n. 2
0
 // Compares two Decimal values for equality. Returns true if the two
 // Decimal values are equal, or false if they are not equal.
 //
 public static bool Equals(Decimal d1, Decimal d2)
 {
     return(DecCalc.VarDecCmp(ref d1, ref d2) == 0);
 }
Esempio n. 3
0
 public int CompareTo(Decimal value)
 {
     return(DecCalc.VarDecCmp(ref this, ref value));
 }
Esempio n. 4
0
 public bool Equals(Decimal value)
 {
     return(DecCalc.VarDecCmp(ref this, ref value) == 0);
 }
Esempio n. 5
0
 // Compares two Decimal values, returning an integer that indicates their
 // relationship.
 //
 public static int Compare(Decimal d1, Decimal d2)
 {
     return(DecCalc.VarDecCmp(ref d1, ref d2));
 }