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

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

Public Methods

Method 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 method

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

IsGreaterThan() public static method

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

IsLessThanOrClose() public static method

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.
return bool

IsNaN() public static method

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

IsZero() public static method

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