C# Class Encog.Engine.Util.Format

Provides the ability for Encog to format numbers and times.
Datei anzeigen Open project: encog/encog-silverlight-core

Public Methods

Method Description
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.

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

public static FormatInteger ( int i ) : String
i int
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