fix floating point arithmatic with a round
add test case from paperclip