public class Math2 extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
memoryArraySize |
static String |
memoryTooMuchData
These are *not* final so EDStatic can replace them with translated Strings.
|
| Constructor and Description |
|---|
Math2() |
| Modifier and Type | Method and Description |
|---|---|
static void |
ensureArraySizeOkay(long tSize,
String attributeTo)
Even if JavaBits is 64, the limit on an array size is Integer.MAX_VALUE.
|
static boolean |
isFinite(double d)
Checks if the value is not NaN or +-Infinite.
|
static int |
roundToInt(double d)
Safely rounds a double to an int.
|
public static String memoryTooMuchData
public static String memoryArraySize
public static boolean isFinite(double d)
d - any double value or float valuepublic static void ensureArraySizeOkay(long tSize,
String attributeTo)
This is almost identical to EDStatic.ensureArraySizeOkay, but lacks tallying.
tSize - attributeTo - for a WARNING or ERROR message, this is the string
to which this not-enough-memory issue should be attributed.public static int roundToInt(double d)
d - any doubleCopyright © 1999–2014 UCAR/Unidata. All rights reserved.