Truncate floating point offsets

Fixes #5.