Using toDouble instead of toFloat when calculating destination host