used float64 during conversions for more precision