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.byte
double doubleValue()
double
, rounding and/or
truncating it if necessary.double
float floatValue()
float
, rounding and/or
truncating it if necessary.float
int intValue()
int
, rounding and/or
truncating it if necessary.int
long longValue()
long
, rounding and/or
truncating it if necessary.long
short shortValue()
short
, rounding and/or
truncating it if necessary.short