C# Class Encog.Util.Format

ファイルを表示 Open project: encog/encog-silverlight-core

Public Methods

Method Description
FormatDouble ( double d, int i ) : String

Format a double.

FormatInteger ( int i ) : String

Format an integer.

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.

FormatYesNo ( bool p ) : string

Format a boolean to yes/no.

Private Methods

Method Description
Format ( ) : System

Private constructor.

Method Details

FormatDouble() public static method

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

FormatInteger() public static method

Format an integer.
public static FormatInteger ( int i ) : String
i int The integer.
return String

FormatMemory() public static method

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

FormatPercent() public static method

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

FormatPercentWhole() public static method

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

FormatTimeSpan() public static method

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

FormatYesNo() public static method

Format a boolean to yes/no.
public static FormatYesNo ( bool p ) : string
p bool The default answer.
return string