public class HashCodeUtil extends Object
Modifier and Type | Method and Description |
---|---|
static long |
doubleToLongBits(double d)
Returns the representation of the specified floating-point
value according to the IEEE 754 floating-point "double format"
bit layout, after first mapping -0.0 to 0.0.
|
static int |
floatToIntBits(float f)
Returns the representation of the specified floating-point
value according to the IEEE 754 floating-point "single format"
bit layout, after first mapping -0.0 to 0.0.
|
public static int floatToIntBits(float f)
f
- an input floating-point numberpublic static long doubleToLongBits(double d)
d
- an input double precision floating-point numberCopyright © 2016–2022 SciJava. All rights reserved.