C# Класс Smrf.AppLib.MathUtil

Utility methods for working with numbers.
All methods are static.
Показать файл Открыть проект

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

Метод Описание
CountDecimalPlaces ( Decimal theDecimal ) : Int32
DegreesToRadians ( Double degrees ) : Double
GetDecimalFraction ( Decimal theDecimal ) : Decimal
ParseCultureInvariantDouble ( String s ) : Double
ParseCultureInvariantInt32 ( String s ) : Int32
ParseCultureInvariantSingle ( String s ) : System.Single
RadiansToDegrees ( Double radians ) : Double
TransformValueToRange ( System.Single valueRangeA, System.Single minimumValueRangeA, System.Single maximumValueRangeA, System.Single minimumValueRangeB, System.Single maximumValueRangeB ) : System.Single
TryParseCultureInvariantDouble ( String s, Double &result ) : System.Boolean
TryParseCultureInvariantInt32 ( String s, Int32 &result ) : System.Boolean
TryParseCultureInvariantSingle ( String s, System.Single &result ) : System.Boolean
TryParseCultureInvariantUInt32 ( String s, UInt32 &result ) : System.Boolean

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

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

public static CountDecimalPlaces ( Decimal theDecimal ) : Int32
theDecimal Decimal
Результат System.Int32

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

public static DegreesToRadians ( Double degrees ) : Double
degrees Double
Результат Double

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

public static GetDecimalFraction ( Decimal theDecimal ) : Decimal
theDecimal Decimal
Результат Decimal

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

public static ParseCultureInvariantDouble ( String s ) : Double
s String
Результат Double

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

public static ParseCultureInvariantInt32 ( String s ) : Int32
s String
Результат System.Int32

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

public static ParseCultureInvariantSingle ( String s ) : System.Single
s String
Результат System.Single

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

public static RadiansToDegrees ( Double radians ) : Double
radians Double
Результат Double

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

public static TransformValueToRange ( System.Single valueRangeA, System.Single minimumValueRangeA, System.Single maximumValueRangeA, System.Single minimumValueRangeB, System.Single maximumValueRangeB ) : System.Single
valueRangeA System.Single
minimumValueRangeA System.Single
maximumValueRangeA System.Single
minimumValueRangeB System.Single
maximumValueRangeB System.Single
Результат System.Single

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

public static TryParseCultureInvariantDouble ( String s, Double &result ) : System.Boolean
s String
result Double
Результат System.Boolean

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

public static TryParseCultureInvariantInt32 ( String s, Int32 &result ) : System.Boolean
s String
result System.Int32
Результат System.Boolean

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

public static TryParseCultureInvariantSingle ( String s, System.Single &result ) : System.Boolean
s String
result System.Single
Результат System.Boolean

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

public static TryParseCultureInvariantUInt32 ( String s, UInt32 &result ) : System.Boolean
s String
result System.UInt32
Результат System.Boolean