chapter7My--Java教案.doc

第七章 几个基本的Java类 7.1 Math类 1、常用的数学方法 成员变量 static?double E The double value that is closer than any other to e, the base of the natural logarithms. static?double PI The double value that is closer than any other to pi, the ratio of the circumference of a circle to its diameter. 成员方法 static?double abs(double?a) ??????????Returns the absolute value of a double value. static?float abs(float?a) ??????????Returns the absolute value of a float value. static?int abs(int?a) ??????????Returns the absolute value of an int value. static?long abs(long?a) ??????????Returns the absolute value of a long

文档评论(0)

1亿VIP精品文档

相关文档