Switched to doubles to avoid integer overflow

Signed-off-by: retep998 <retep998@verizon.net>