C# 클래스 LeopotamGroup.Math.MathExtensions

Math extensions.
파일 보기 프로젝트 열기: Leopotam/LeopotamGroupLibraryUnity

공개 프로퍼티들

프로퍼티 타입 설명
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