public class ErddapMath2
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
memoryArraySize |
static java.lang.String |
memoryTooMuchData
These are *not* final so EDStatic can replace them with translated Strings.
|
Constructor and Description |
---|
ErddapMath2() |
Modifier and Type | Method and Description |
---|---|
static void |
ensureArraySizeOkay(long tSize,
java.lang.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 java.lang.String memoryTooMuchData
public static java.lang.String memoryArraySize
public static boolean isFinite(double d)
d
- any double value or float valuepublic static void ensureArraySizeOkay(long tSize, java.lang.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 double