roo-rb / roo

Roo provides an interface to spreadsheets of several sorts.
MIT License
2.78k stars 503 forks source link

issue-310 off by one error #527

Closed OldRugger closed 4 years ago

OldRugger commented 4 years ago

Summary

Bugfix for https://github.com/roo-rb/roo/issues/310.

Round float value before converting to integer

Other Information

I added a simple spec to cover the issue reported in issue-310 and one of the ones I ran into.

coveralls commented 4 years ago

Coverage Status

Coverage increased (+0.04%) to 94.405% when pulling f56addc009bbb29e19c4385f309084f76b06f521 on OldRugger:issue-310_off_by_one into 4ec1104f0c3c2a29711c0c907371cd2be12bcc3c on roo-rb:master.