C# Class RobustArithmetic.Test.Util.DoubleExtensions

Show file Open project: govert/RobustGeometry.NET

Public Methods

Method Description
BitWidth ( this d ) : int

Returns the width of the significand of d E.g. if d = -0100.01 it returns 5 CONSIDER: This takes into account the implicit leading 1 for normalised doubles. I'm still a bit confused about how to consider this.

IsInRange ( this d ) : bool
IsNumber ( this d ) : bool
IsPowerOfTwo ( this d ) : bool

Method Details

BitWidth() public static method

Returns the width of the significand of d E.g. if d = -0100.01 it returns 5 CONSIDER: This takes into account the implicit leading 1 for normalised doubles. I'm still a bit confused about how to consider this.
public static BitWidth ( this d ) : int
d this
return int

IsInRange() public static method

public static IsInRange ( this d ) : bool
d this
return bool

IsNumber() public static method

public static IsNumber ( this d ) : bool
d this
return bool

IsPowerOfTwo() public static method

public static IsPowerOfTwo ( this d ) : bool
d this
return bool