how to convert from float to double in java code example Example: java double to float double d = getInfoValueNumeric(); float f = (float)d;