点击或拖拽改变大小

MathEx 类

Sweet 开发框架
数学扩展类
继承层次
SystemObject
  Sweet.CommonMathEx

命名空间:  Sweet.Common
程序集:  Sweet.Common (在 Sweet.Common.dll 中) 版本:3.10.1.0 (3.10.1.0)
语法
public static class MathEx

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").
Top
字段
  名称说明
公共字段静态成员CHARS_36
大写字母和数字
公共字段静态成员CHARS_62
字母和数字
公共字段静态成员CHARS_BINARY
二进制
公共字段静态成员CHARS_DECIMAL
十进制
公共字段静态成员CHARS_DUODECIMAL
十二进制
公共字段静态成员CHARS_HEX
十六进制
公共字段静态成员CHARS_OCTAL
八进制
公共字段静态成员CHARS_PURECHAR
纯字母(包含大小写)
公共字段静态成员CHARS_PUREUPPERCHAR
纯大写字母
公共字段静态成员CHARS_QUATERNARY
四进制
公共字段静态成员CHARS_SEPTENARY
六进制
Top
参见
SweetUI 控件库、工具类库、扩展类库、多页面开发框架