![]() | MathEx 类 |
命名空间: Sweet.Common
MathEx 类型公开以下成员。
名称 | 说明 | |
---|---|---|
![]() ![]() | BinarySearch(Int32, Int32) |
二分查找与最近值序号
|
![]() ![]() | BinarySearch(ListInt32, Int32) |
二分查找与最近值序号
|
![]() ![]() | BinarySearchNearIndexT(T, T) |
二分查找与最近值序号
|
![]() ![]() | BinarySearchNearIndexT(IListT, T) |
二分查找与最近值序号
|
![]() ![]() | BinToInt |
二进制转十进制
|
![]() ![]() | CalcAngle(Point, Point) | |
![]() ![]() | CalcAngle(PointF, PointF) | |
![]() ![]() | CalcDistance(Point, Point) | |
![]() ![]() | CalcDistance(PointF, PointF) | |
![]() ![]() | CheckInRangeT | |
![]() ![]() | CheckLowerLimitT | |
![]() ![]() | CheckUpperLimitT | |
![]() ![]() | Deg(Double) |
弧度转角度
|
![]() ![]() | Deg(Single) |
弧度转角度
|
![]() ![]() | Div |
除取整
|
![]() ![]() | EqualsDouble |
判断双精度数是否相等
|
![]() ![]() | EqualsFloat |
判断浮点数相等
|
![]() ![]() | HexToInt |
十六进制转十进制
|
![]() ![]() | InRange(Double, Double, Double) | Checks whether the value is in range |
![]() ![]() | InRange(Int32, Int32, Int32) | Checks whether the value is in range |
![]() ![]() | InRange(Int64, Int64, Int64) | Checks whether the value is in range |
![]() ![]() | InRange(Single, Single, Single) | Checks whether the value is in range |
![]() ![]() | InRange(Double, Double, Double, Double) | Checks whether the value is in range or returns the default value |
![]() ![]() | InRange(Int32, Int32, Int32, Int32) | Checks whether the value is in range or returns the default value |
![]() ![]() | InRange(Int64, Int64, Int64, Int64) | Checks whether the value is in range or returns the default value |
![]() ![]() | InRange(Single, Single, Single, Single) | Checks whether the value is in range or returns the default value |
![]() ![]() | IsEven(Int32) |
是否是偶数
|
![]() ![]() | IsEven(Int64) |
Determines whether the value is even
|
![]() ![]() | IsOdd(Int32) |
是否是奇数
|
![]() ![]() | IsOdd(Int64) |
Determines whether the value is odd
|
![]() ![]() | IsZero(Double) |
是否为0
|
![]() ![]() | IsZero(Single) |
是否为0
|
![]() ![]() | Mod |
除取余
|
![]() ![]() | Rad(Double) |
角度转弧度
|
![]() ![]() | Rad(Single) |
角度转弧度
|
![]() ![]() | RoundEx(Double) |
取整
|
![]() ![]() | RoundEx(Single) |
取整
|
![]() ![]() | ToBin |
十进制转二进制
|
![]() ![]() | ToBool(Byte, Boolean) |
Converts number format {1 , 0} to bool value.
|
![]() ![]() | ToBool(Int32, Boolean) |
Converts number format {1 , 0} to bool value.
|
![]() ![]() | ToByte |
Converts the value in number format {1 , 0}.
|
![]() ![]() | ToHex |
十进制转十六进制
|
![]() ![]() | ToInt |
Converts the value in number format {1 , 0}.
|
![]() ![]() | ToNumberLong |
指定字符串转换为指定进制的数字形式
|
![]() ![]() | ToNumberString(Byte, MathExCharacters, String) | |
![]() ![]() | ToNumberString(UInt16, MathExCharacters, String) | |
![]() ![]() | ToNumberString(UInt32, MathExCharacters, String) | |
![]() ![]() | ToNumberString(UInt64, MathExCharacters, String) |
数字转换为指定的进制形式字符串
|
![]() ![]() | ToRMBString |
转换人民币大小金额
|
![]() ![]() | ToTrueFalseString |
Converts the value of this instance to its equivalent string representation (either "True" or "False").
|
![]() ![]() | ToYesNoString |
Converts the value of this instance to its equivalent string representation (either "Yes" or "No").
|
名称 | 说明 | |
---|---|---|
![]() ![]() | CHARS_36 |
大写字母和数字
|
![]() ![]() | CHARS_62 |
字母和数字
|
![]() ![]() | CHARS_BINARY |
二进制
|
![]() ![]() | CHARS_DECIMAL |
十进制
|
![]() ![]() | CHARS_DUODECIMAL |
十二进制
|
![]() ![]() | CHARS_HEX |
十六进制
|
![]() ![]() | CHARS_OCTAL |
八进制
|
![]() ![]() | CHARS_PURECHAR |
纯字母(包含大小写)
|
![]() ![]() | CHARS_PUREUPPERCHAR |
纯大写字母
|
![]() ![]() | CHARS_QUATERNARY |
四进制
|
![]() ![]() | CHARS_SEPTENARY |
六进制
|