C# Class Microsoft.Silverlight.Testing.Controls.NumericExtensions

Numeric utility methods used by controls. These methods are similar in scope to the WPF DoubleUtil class.
Afficher le fichier Open project: garyjohnson/wpnest Class Usage Examples

Méthodes publiques

Méthode Description
AreClose ( double left, double right ) : bool

Determine if two numbers are close in value.

IsGreaterThan ( double left, double right ) : bool

Determine if one number is greater than another.

IsLessThanOrClose ( double left, double right ) : bool

Determine if one number is less than or close to another.

IsNaN ( this value ) : bool

Check if a number isn't really a number.

IsZero ( this value ) : bool

Check if a number is zero.

Method Details

AreClose() public static méthode

Determine if two numbers are close in value.
public static AreClose ( double left, double right ) : bool
left double First number.
right double Second number.
Résultat bool

IsGreaterThan() public static méthode

Determine if one number is greater than another.
public static IsGreaterThan ( double left, double right ) : bool
left double First number.
right double Second number.
Résultat bool

IsLessThanOrClose() public static méthode

Determine if one number is less than or close to another.
public static IsLessThanOrClose ( double left, double right ) : bool
left double First number.
right double Second number.
Résultat bool

IsNaN() public static méthode

Check if a number isn't really a number.
public static IsNaN ( this value ) : bool
value this The number to check.
Résultat bool

IsZero() public static méthode

Check if a number is zero.
public static IsZero ( this value ) : bool
value this The number to check.
Résultat bool