Converted offsets to doubles.

Converted the offsets to double as it was throwing errors when an offset
had a decimal.