Double into Float
Hey all,
Ive got a Double and I want to convert it to a Float and I want to check its within the IEEE 754 standards of the highest value you can have and lowest...
But I can't parse it, as Ive found out and .floatValue() doesn't throw an error as im aware, So I was wondering if you had any ideas
Double tmpDouble;
tmpDouble =new Double(anaObj.getValue());
float tmpFloat = 0f;
try
{
tmpFloat = tmpDouble.floatValue();
}
catch (NumberFormatException nfe)
{
Logger.writeLogMessage(Logger.WARNING, nfe.getMessage());
}

