C# 클래스 Encog.Engine.Util.Format

Provides the ability for Encog to format numbers and times.
파일 보기 프로젝트 열기: encog/encog-silverlight-core

공개 메소드들

메소드 설명
FormatDouble ( double d, int i ) : String

Format a double.

FormatInteger ( int i ) : String
FormatMemory ( long memory ) : String

Format a memory amount, to something like 32 MB.

FormatPercent ( double e ) : String

Format a percent. Using 6 decimal places.

FormatPercentWhole ( double e ) : String

Format a percent with no decimal places.

FormatTimeSpan ( int seconds ) : String

Format a time span as seconds, minutes, hours and days.

비공개 메소드들

메소드 설명
Format ( ) : System

Private constructor.

메소드 상세

FormatDouble() 공개 정적인 메소드

Format a double.
public static FormatDouble ( double d, int i ) : String
d double The double value to format.
i int The number of decimal places.
리턴 String

FormatInteger() 공개 정적인 메소드

public static FormatInteger ( int i ) : String
i int
리턴 String

FormatMemory() 공개 정적인 메소드

Format a memory amount, to something like 32 MB.
public static FormatMemory ( long memory ) : String
memory long The amount of bytes.
리턴 String

FormatPercent() 공개 정적인 메소드

Format a percent. Using 6 decimal places.
public static FormatPercent ( double e ) : String
e double The percent to format.
리턴 String

FormatPercentWhole() 공개 정적인 메소드

Format a percent with no decimal places.
public static FormatPercentWhole ( double e ) : String
e double The format to percent.
리턴 String

FormatTimeSpan() 공개 정적인 메소드

Format a time span as seconds, minutes, hours and days.
public static FormatTimeSpan ( int seconds ) : String
seconds int The number of seconds in the timespan.
리턴 String