Skip to content

Numeric

Taiizor edited this page Mar 1, 2023 · 8 revisions

Numeric Class - Skylark.Helper Namespace

The Numeric class provides methods for converting numeric values and formatting numbers.

Methods

ToDouble(string Value)

Returns the double representation of the specified string.

ToDoubleAsync(string Value)

Returns a Task<double> that represents the asynchronous operation of converting the specified string to a double.

ToDouble(decimal Value)

Returns the double representation of the specified decimal value.

ToDoubleAsync(decimal Value)

Returns a Task<double> that represents the asynchronous operation of converting the specified decimal value to a double.

ToDecimal(string Value)

Returns the decimal representation of the specified string.

ToDecimalAsync(string Value)

Returns a Task<decimal> that represents the asynchronous operation of converting the specified string to a decimal.

ToDecimal(double Value)

Returns the decimal representation of the specified double value.

ToDecimalAsync(double Value)

Returns a Task<decimal> that represents the asynchronous operation of converting the specified double value to a decimal.

Numeral(object Value, bool Decimal = true, bool Fraction = true, int Digit = 2, char Number = '0', string Clear = DefaultType)

Formats the specified value as a string with the specified number format parameters.

NumeralAsync(object Value, bool Decimal = true, bool Fraction = true, int Digit = 2, char Number = '0', string Clear = DefaultType)

Returns a Task<string> that represents the asynchronous operation of formatting the specified value as a string with the specified number format parameters.

Numeral(object Value, bool Decimal = true, bool Fraction = true, int Digit = 2, char Number = '0', SECNT Clear = ClearType)

Formats the specified value as a string with the specified number format parameters.

NumeralAsync(object Value, bool Decimal = true, bool Fraction = true, int Digit = 2, char Number = '0', SECNT Clear = ClearType)

Returns a Task<string> that represents the asynchronous operation of formatting the specified value as a string with the specified number format parameters.

Clone this wiki locally