convert ratios to doubles