Changed float types to double types for more precision.

Signed-off-by: PandaDragonThing <jacob@linuxrocket.net>