Fixed the floating point / double code. Original code was
back to front :-S Note to self: drink more coffee or sleep more.