C# 클래스 RobustArithmetic.Test.Util.DoubleExtensions

파일 보기 프로젝트 열기: govert/RobustGeometry.NET

공개 메소드들

메소드 설명
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

메소드 상세

BitWidth() 공개 정적인 메소드

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
리턴 int

IsInRange() 공개 정적인 메소드

public static IsInRange ( this d ) : bool
d this
리턴 bool

IsNumber() 공개 정적인 메소드

public static IsNumber ( this d ) : bool
d this
리턴 bool

IsPowerOfTwo() 공개 정적인 메소드

public static IsPowerOfTwo ( this d ) : bool
d this
리턴 bool