public interface OCamlNumber
OCamlNumber interface is similar to the
java.lang.Number class, thus allowing to manipulate OCaml
values wrapping numeric values in the same way as classical Java
wrappers for primitive types.Number| Modifier and Type | Method and Description |
|---|---|
byte |
byteValue()
Returns the wrapped value as a
byte, rounding and/or
truncating it if necessary. |
double |
doubleValue()
Returns the wrapped value as a
double, rounding and/or
truncating it if necessary. |
float |
floatValue()
Returns the wrapped value as a
float, rounding and/or
truncating it if necessary. |
int |
intValue()
Returns the wrapped value as a
int, rounding and/or
truncating it if necessary. |
long |
longValue()
Returns the wrapped value as a
long, rounding and/or
truncating it if necessary. |
short |
shortValue()
Returns the wrapped value as a
short, rounding and/or
truncating it if necessary. |
byte byteValue()
byte, rounding and/or
truncating it if necessary.bytedouble doubleValue()
double, rounding and/or
truncating it if necessary.doublefloat floatValue()
float, rounding and/or
truncating it if necessary.floatint intValue()
int, rounding and/or
truncating it if necessary.intlong longValue()
long, rounding and/or
truncating it if necessary.longshort shortValue()
short, rounding and/or
truncating it if necessary.short