cast size in denominator to double