C# Класс LeopotamGroup.Math.MathExtensions

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

Открытые свойства

Свойство Тип Описание
UnifiedNumberFormat System.Globalization.NumberFormatInfo

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

Метод Описание
ToFloat ( this text ) : float

Convert string to float.

ToFloatUnchecked ( this text ) : float

Fast convert string to float. Fast, no GC allocation, no support for scientific format.

ToStringFast ( this data ) : string

Convert float number to string. Fast, no support for scientific format.

ToStringWithSuffix ( this data, int digitsAfterPoint = 2 ) : string

Convert number to string with "kilo-million-billion" suffix with rounding.

Описание методов

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

Convert string to float.
public static ToFloat ( this text ) : float
text this Source string.
Результат float

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

Fast convert string to float. Fast, no GC allocation, no support for scientific format.
public static ToFloatUnchecked ( this text ) : float
text this Raw string.
Результат float

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

Convert float number to string. Fast, no support for scientific format.
public static ToStringFast ( this data ) : string
data this Data.
Результат string

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

Convert number to string with "kilo-million-billion" suffix with rounding.
public static ToStringWithSuffix ( this data, int digitsAfterPoint = 2 ) : string
data this Source number.
digitsAfterPoint int Digits after floating point.
Результат string

Описание свойств

UnifiedNumberFormat публичное статическое свойство

Unified NumberFormatInfo.
public static NumberFormatInfo,System.Globalization UnifiedNumberFormat
Результат System.Globalization.NumberFormatInfo