|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.omegahat.Simulation.RandomGenerators.Unsigned
Package to provide conversion from/to integer values treated as unsigned.
This class is currenly incomplete. Contributions are welcome. Potential additions include:
Constructor Summary | |
Unsigned()
|
Method Summary | |
static double |
fromDouble(double d)
Convert a double to an int (treated as unsigned) Note that in the current implementation, long negative values are converted unchanged. |
static int |
fromLong(long l)
Convert a long to an int (treated as unsigned) Note that in the current implementation, long negative values are converted unchanged. |
static double |
toDouble(int i)
Convert an int (treated as unsigned) to a double |
static long |
toLong(int u)
Convert an int (treated as unsigned) to a long |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public Unsigned()
Method Detail |
public static long toLong(int u)
public static int fromLong(long l)
public static double toDouble(int i)
public static double fromDouble(double d)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |