ValueFloat
Implementation of the REAL data type.
Methods
static ValueFloat
get
(float d)
Get or create float value for the given float.
static ValueFloat
get
(float d)
Get or create float value for the given float.
Parameters:
d - the float
Returns:
the value
Value
add
(Value v)
Value
add
(Value v)
int
compareSecure
(Value o, CompareMode mode)
int
compareSecure
(Value o, CompareMode mode)
Value
divide
(Value v)
Value
divide
(Value v)
boolean
equals
(Object other)
boolean
equals
(Object other)
int
getDisplaySize
()
int
getDisplaySize
()
float
getFloat
()
float
getFloat
()
Object
getObject
()
Object
getObject
()
long
getPrecision
()
long
getPrecision
()
String
getSQL
()
String
getSQL
()
int
getScale
()
int
getScale
()
int
getSignum
()
int
getSignum
()
String
getString
()
String
getString
()
int
getType
()
int
getType
()
int
hashCode
()
int
hashCode
()
Value
modulus
(Value v)
Value
modulus
(Value v)
Value
multiply
(Value v)
Value
multiply
(Value v)
Value
negate
()
Value
negate
()
void
set
(PreparedStatement prep, int parameterIndex)
void
set
(PreparedStatement prep, int parameterIndex) throws SQLException
Value
subtract
(Value v)
Value
subtract
(Value v)
Fields
static int
DISPLAY_SIZE
= 15
static int
PRECISION
= 7
static int
ZERO_BITS
DISPLAY_SIZE = 15
The maximum display size of a float. Example: -1.12345676E-20
PRECISION = 7
The precision in digits.
ZERO_BITS
Float.floatToIntBits(0.0F).