break; case DataType.FLOAT: tuple.set(i, DataType.toFloat(object)); break; case DataType.INTEGER:
/** * Force a data object to a Float, if possible. Any numeric type * can be forced to a Float (though precision may be lost), as well * as CharArray, ByteArray, or Boolean. Complex types cannot be * forced to an Float. This isn't particularly efficient, so if you * already <b>know</b> that the object you have is a Float you * should just cast it. Unlike {@link #toFloat(Object, byte)} this * method will first determine the type of o and then do the cast. * Use {@link #toFloat(Object, byte)} if you already know the type. * @param o object to cast * @return The object as a Float. * @throws ExecException if the type can't be forced to an Float. */ public static Float toFloat(Object o) throws ExecException { return toFloat(o, findType(o)); }
return DataType.toDouble(o); case DataType.FLOAT: return DataType.toFloat(o); default: return o;
break; case DataType.FLOAT: tuple.set(i, DataType.toFloat(object)); break; case DataType.INTEGER: