F(a,b) = floor(Int,a/b)*b seems to fit the examples.
On Thursday, October 8, 2015 at 6:01:07 PM UTC+3, Sisyphuss wrote: > > Hello everyone, > > I want a function F(), so that > F(0.154, 0.1) = 0.1 > F(0.154, 0.01) = 0.15 > F(0.154, 0.003) = 0.153 > > I tried `div(a,b)*b`. However, I got: > > div(0.128,0.0001) * 0.0001 = 0.1279 > > not equal to 0.1280 > > Any solution? >
