java命名空间java.math枚举roundingmode的类成员方法:
unnecessary定义及介绍
本文导语:
unnecessary
public static final roundingmode unnecessary
用于断言请求的操作具有精确结果的舍入模式,因此不需要舍入。如果对生成精确结果的操作指定此舍入模式,则抛出 arithmeticexception。
示例:
values
public static final roundingmode[...
unnecessary
public static final roundingmode unnecessary
- 用于断言请求的操作具有精确结果的舍入模式,因此不需要舍入。如果对生成精确结果的操作指定此舍入模式,则抛出 arithmeticexception。
示例:
public static final roundingmode[] values()
- returns an array containing the constants of this enum type, in
the order they are declared. this method may be used to iterate
over the constants as follows:
for(roundingmode c : roundingmode.values())
system.out.println(c);
- 返回:
- an array containing the constants of this enum type, in
the order they are declared