C# 클래스 MiscUtil.Conversion.DoubleConverter.ArbitraryDecimal

Private class used for manipulating sequences of decimal digits.
파일 보기 프로젝트 열기: jadref/buffer_bci

공개 메소드들

메소드 설명
ToString ( ) : String

Converts the value to a proper decimal string representation.

비공개 메소드들

메소드 설명
ArbitraryDecimal ( long x ) : System

Constructs an arbitrary decimal expansion from the given long. The long must not be negative.

MultiplyBy ( int amount ) : void

Multiplies the current expansion by the given amount, which should only be 2 or 5.

Normalize ( ) : void

Removes leading/trailing zeroes from the expansion.

Shift ( int amount ) : void

Shifts the decimal point; a negative value makes the decimal expansion bigger (as fewer digits come after the decimal place) and a positive value makes the decimal expansion smaller.

메소드 상세

ToString() 공개 메소드

Converts the value to a proper decimal string representation.
public ToString ( ) : String
리턴 String