public class Misc
extends java.lang.Object
| Constructor and Description |
|---|
Misc() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
closeEnough(double v1,
double v2)
Check if numbers are equal with default tolerance
|
static boolean |
closeEnough(double v1,
double v2,
double tol)
Check if numbers are equal with tolerance
|
static boolean |
closeEnough(float v1,
float v2)
Check if numbers are equal with default tolerance
|
static void |
main(java.lang.String[] args)
test
|
static java.lang.String |
showBytes(byte[] buff) |
static void |
showBytes(byte[] buff,
java.util.Formatter f) |
public static boolean closeEnough(double v1,
double v2,
double tol)
v1 - first floating point numberv2 - second floating point numbertol - reletive tolerencepublic static boolean closeEnough(double v1,
double v2)
v1 - first floating point numberv2 - second floating point numberpublic static boolean closeEnough(float v1,
float v2)
v1 - first floating point numberv2 - second floating point numberpublic static void main(java.lang.String[] args)
public static java.lang.String showBytes(byte[] buff)
public static void showBytes(byte[] buff,
java.util.Formatter f)