Calls math.Floor in the interval function. This simulates the behaviour division rounding to 0 in solidity.
The only real issue that popped up seemed to be around interval()=1. Previously we would rely on fixed point values being closer but not equal to 1. By switching a few of these checks all the tests now pass.
Fixes #29
Calls
math.Floor
in theinterval
function. This simulates the behaviour division rounding to 0 in solidity.The only real issue that popped up seemed to be around
interval()=1
. Previously we would rely on fixed point values being closer but not equal to 1. By switching a few of these checks all the tests now pass.