Convert from E6 to doubles.

I haven't been able to test this yet but it should cover most if not all of the int to double case from #46