Floats, doubles, sign-swapping magic - oh my