xlang v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
Math.xcs
浏览该文件的文档.
1
5@Declare
6final class Math{
7
13 static int abs(int v);
14
20 static long abs(long v);
21
27 static double abs(double v);
28
34 static double acos(double v);
35
41 static double asin(double v);
42
48 static double atan(double v);
49
55 static double atan2(double y,double x);
56
62 static double tanh(double v);
63
69 static double cbrt(double v);
70
76 static double ceil(double v);
77
83 static double cos(double v);
84
90 static double cosh(double v);
91
97 static double exp(double v);
98
104 static double expm1(double v);
105
111 static double floor(double v);
112
118 static int floorDiv(int y, int v);
119
125 static long floorDiv(long y, long v);
126
132 static int max(int a, int b);
133
139 static long max(long a, long b);
140
146 static double max(double a, double b);
147
153 static int min(int a, int b);
154
160 static long min(long a, long b);
161
167 static double min(double a, double b);
168
174 static double pow(double a, double b);
175
181 static double sinh(double x);
182
188 static double log1p(double x);
189
195 static double log(double x);
196
202 static long round(double x);
203
208 static double random();
209
215 static double isNan(double x);
216
222 static double isINF(double x);
223
230 static float parseFloat(String x);
231
238 static double parseDouble(String x);
239
246 static double longBitsToDouble(long v);
247
253 static double intBitsToDouble(int v);
254
260 static long intBitsToDouble(double v);
261
267 static int doubleBitsToInt(double v);
268
274 static int floatBitsToInt(float v);
275
276
282 static float intBitsToFloat(int v);
283};
Math类
static double min(double a, double b)
取最小
static double expm1(double v)
计算参数的以 e 为底的指数,减去 1
static long abs(long v)
取绝对值
static double isINF(double x)
判断是不是无限大\小
static double atan(double v)
反正切函数
static double parseDouble(String x)
将字符串解析为double
static int floorDiv(int y, int v)
地板除
static long min(long a, long b)
取最小
static float parseFloat(String x)
将字符串解析为float
static double acos(double v)
反余弦函数
static double exp(double v)
求e为底的指数
static int floatBitsToInt(float v)
float按数据位转int
static double abs(double v)
取绝对值
static double floor(double v)
将数字向下舍入到基数的最接近倍数
static double ceil(double v)
向上取整
static long intBitsToDouble(double v)
double按数据位转long
static double cosh(double v)
双曲余弦函数
static float intBitsToFloat(int v)
int按数据位转float
static long round(double x)
四舍五入
static int min(int a, int b)
取最小
static int max(int a, int b)
取最大
static double sinh(double x)
双曲正弦
static double isNan(double x)
判断是不是有效数字
static double log1p(double x)
计算1加参数以 e 为底的对数
static double intBitsToDouble(int v)
int按数据位转double
static double atan2(double y,double x)
四象限反正切函数
static double pow(double a, double b)
计算乘方
static double tanh(double v)
双曲正切函数
static double log(double x)
计算指定的底数的数字的对数
static double max(double a, double b)
取最大
static int abs(int v)
取绝对值
static int doubleBitsToInt(double v)
double按数据位转int
static long floorDiv(long y, long v)
地板除
static double cos(double v)
余弦函数
static double cbrt(double v)
求立方根
static double random()
浮点数均匀分布随机数0~1
static double asin(double v)
反正弦函数
static long max(long a, long b)
取最大
static double longBitsToDouble(long v)
long按数据位转double
字符串类