xlang v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
静态 Public 成员函数 | 静态包函数 | 静态包属性
Math类 参考

Math类 更多...

静态 Public 成员函数

静态包函数

静态包属性

详细描述

Math类

在文件 BuiltinObjects.x741 行定义.

成员函数说明

◆ abs() [1/6]

static double abs ( double  v)
staticpackage

取绝对值

参数
v输入的参数
返回
结果

◆ abs() [2/6]

static final double abs ( double  )
static

◆ abs() [3/6]

static int abs ( int  v)
staticpackage

取绝对值

参数
v输入的参数
返回
结果

◆ abs() [4/6]

static final int abs ( int  )
static

◆ abs() [5/6]

static long abs ( long  v)
staticpackage

取绝对值

参数
v输入的参数
返回
结果

◆ abs() [6/6]

static final long abs ( long  )
static

◆ acos() [1/2]

static double acos ( double  v)
staticpackage

反余弦函数

参数
v输入的参数
返回
结果

◆ acos() [2/2]

static final double acos ( double  )
static

◆ asin() [1/2]

static double asin ( double  v)
staticpackage

反正弦函数

参数
v输入的参数
返回
结果

◆ asin() [2/2]

static final double asin ( double  )
static

◆ atan() [1/2]

static double atan ( double  v)
staticpackage

反正切函数

参数
v输入的参数
返回
结果

◆ atan() [2/2]

static final double atan ( double  )
static

◆ atan2() [1/2]

static double atan2 ( double  y,
double  x 
)
staticpackage

四象限反正切函数

参数
yx 参数
返回
结果

◆ atan2() [2/2]

static final double atan2 ( double  ,
double   
)
static

◆ cbrt() [1/2]

static double cbrt ( double  v)
staticpackage

求立方根

参数
v输入的参数
返回
结果

◆ cbrt() [2/2]

static final double cbrt ( double  )
static

◆ ceil() [1/2]

static double ceil ( double  v)
staticpackage

向上取整

参数
v输入的参数
返回
结果

◆ ceil() [2/2]

static final double ceil ( double  )
static

◆ cos() [1/2]

static double cos ( double  v)
staticpackage

余弦函数

参数
v输入的参数
返回
结果

◆ cos() [2/2]

static final double cos ( double  )
static

◆ cosh() [1/2]

static double cosh ( double  v)
staticpackage

双曲余弦函数

参数
v输入的参数
返回
结果

◆ cosh() [2/2]

static final double cosh ( double  )
static

◆ doubleBitsToInt()

static int doubleBitsToInt ( double  v)
staticpackage

double按数据位转int

参数
v参数
返回
结果

◆ doubleToIntBits()

static final int doubleToIntBits ( double  )
static

◆ doubleToLongBits()

static final long doubleToLongBits ( double  )
static

◆ exp() [1/2]

static double exp ( double  v)
staticpackage

求e为底的指数

参数
v输入的参数
返回
结果

◆ exp() [2/2]

static final double exp ( double  )
static

◆ expm1() [1/2]

static double expm1 ( double  v)
staticpackage

计算参数的以 e 为底的指数,减去 1

参数
v输入的参数
返回
结果

◆ expm1() [2/2]

static final double expm1 ( double  )
static

◆ floatBitsToInt()

static int floatBitsToInt ( float  v)
staticpackage

float按数据位转int

参数
v参数
返回
结果

◆ floatToIntBits()

static final int floatToIntBits ( float  )
static

被这些函数引用 QwtPlot.insertLegend().

◆ floor() [1/2]

static double floor ( double  v)
staticpackage

将数字向下舍入到基数的最接近倍数

参数
v输入的参数
返回
结果

◆ floor() [2/2]

static final double floor ( double  )
static

◆ floorDiv() [1/4]

static int floorDiv ( int  y,
int  v 
)
staticpackage

地板除

参数
yv 输入的参数
返回
结果

◆ floorDiv() [2/4]

static final int floorDiv ( int  ,
int   
)
static

◆ floorDiv() [3/4]

static long floorDiv ( long  y,
long  v 
)
staticpackage

地板除

参数
yv 输入的参数
返回
结果

◆ floorDiv() [4/4]

static final long floorDiv ( long  ,
long   
)
static

◆ intBitsToDouble() [1/3]

static long intBitsToDouble ( double  v)
staticpackage

double按数据位转long

参数
v参数
返回
结果

◆ intBitsToDouble() [2/3]

static double intBitsToDouble ( int  v)
staticpackage

int按数据位转double

参数
v参数
返回
结果

◆ intBitsToDouble() [3/3]

static final double intBitsToDouble ( int  )
static

◆ intBitsToFloat() [1/2]

static float intBitsToFloat ( int  v)
staticpackage

int按数据位转float

参数
v参数
返回
结果

◆ intBitsToFloat() [2/2]

static final float intBitsToFloat ( int  )
static

◆ isINF() [1/2]

static double isINF ( double  x)
staticpackage

判断是不是无限大\小

参数
x参数
返回
结果

◆ isINF() [2/2]

static final bool isINF ( double  )
static

◆ isNan() [1/2]

static double isNan ( double  x)
staticpackage

判断是不是有效数字

参数
x参数
返回
结果

◆ isNan() [2/2]

static final bool isNan ( double  )
static

◆ log() [1/2]

static double log ( double  x)
staticpackage

计算指定的底数的数字的对数

参数
x参数
返回
结果

◆ log() [2/2]

static final double log ( double  )
static

◆ log1p() [1/2]

static double log1p ( double  x)
staticpackage

计算1加参数以 e 为底的对数

参数
x参数
返回
结果

◆ log1p() [2/2]

static final double log1p ( double  )
static

◆ longBitsToDouble() [1/2]

static double longBitsToDouble ( long  v)
staticpackage

long按数据位转double

参数
x参数 @Exception IllegalArgumentException NullPointerException
返回
结果

◆ longBitsToDouble() [2/2]

static final double longBitsToDouble ( long  )
static

◆ max() [1/6]

static double max ( double  a,
double  b 
)
staticpackage

取最大

参数
ab 参数
返回
结果

◆ max() [2/6]

static final double max ( double  ,
double   
)
static

◆ max() [3/6]

static int max ( int  a,
int  b 
)
staticpackage

取最大

参数
ab 参数
返回
结果

◆ max() [4/6]

static final int max ( int  ,
int   
)
static

◆ max() [5/6]

static long max ( long  a,
long  b 
)
staticpackage

取最大

参数
ab 参数
返回
结果

◆ max() [6/6]

static final long max ( long  ,
long   
)
static

◆ min() [1/6]

static double min ( double  a,
double  b 
)
staticpackage

取最小

参数
ab 参数
返回
结果

◆ min() [2/6]

static final double min ( double  ,
double   
)
static

◆ min() [3/6]

static int min ( int  a,
int  b 
)
staticpackage

取最小

参数
ab 参数
返回
结果

◆ min() [4/6]

static final int min ( int  ,
int   
)
static

◆ min() [5/6]

static long min ( long  a,
long  b 
)
staticpackage

取最小

参数
ab 参数
返回
结果

◆ min() [6/6]

static final long min ( long  ,
long   
)
static

◆ parseDouble() [1/2]

static double parseDouble ( String  x)
staticpackage

将字符串解析为double

参数
x参数 @Exception IllegalArgumentException NullPointerException
返回
结果

◆ parseDouble() [2/2]

static final double parseDouble ( String  ) throws IllegalArgumentException
static

◆ parseFloat() [1/2]

static float parseFloat ( String  x)
staticpackage

将字符串解析为float

参数
x参数 @Exception IllegalArgumentException NullPointerException
返回
结果

◆ parseFloat() [2/2]

static final float parseFloat ( String  ) throws IllegalArgumentException
static

◆ parseInt()

static final int parseInt ( String  ,
int   
) throws IllegalArgumentException
static

◆ parseLong()

static final long parseLong ( String  ,
int   
) throws IllegalArgumentException
static

◆ pow() [1/2]

static double pow ( double  a,
double  b 
)
staticpackage

计算乘方

参数
ab 参数
返回
结果

◆ pow() [2/2]

static final double pow ( double  ,
double   
)
static

◆ random() [1/2]

static final double random ( )
static

◆ random() [2/2]

static double random ( )
staticpackage

浮点数均匀分布随机数0~1

返回
结果

◆ round() [1/2]

static long round ( double  x)
staticpackage

四舍五入

参数
x参数
返回
结果

◆ round() [2/2]

static final long round ( double  )
static

◆ sin()

static final double sin ( double  )
static

◆ sinh() [1/2]

static double sinh ( double  x)
staticpackage

双曲正弦

参数
x参数
返回
结果

◆ sinh() [2/2]

static final double sinh ( double  )
static

◆ sqrt()

static final double sqrt ( double  )
static

◆ tanh() [1/2]

static double tanh ( double  v)
staticpackage

双曲正切函数

参数
v输入的参数
返回
结果

◆ tanh() [2/2]

static final double tanh ( double  )
static

结构体成员变量说明

◆ E

const double E
staticpackage

在文件 BuiltinObjects.x742 行定义.

◆ PI

const double PI
staticpackage

在文件 BuiltinObjects.x743 行定义.