C# Класс Encog.Util.Format

Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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() публичный статический Метод

Format an integer.
public static FormatInteger ( int i ) : String
i int The integer.
Результат 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

FormatYesNo() публичный статический Метод

Format a boolean to yes/no.
public static FormatYesNo ( bool p ) : string
p bool The default answer.
Результат string