News for hackers. Stuff that matters.

sarahdayan

Re:How to sell to 20M software devs with amazing onboarding on Thursday March 12, 2020 @07:44AM (#22555757)
Hi there! I work at Algolia and I may have a solution for you: you can filter on ranges to offer that kind of experience.

For instance, if you decide to accept a +/- $20 margin, instead of filtering on exact price, you'd create a filter like `price < 180 AND price > 220` (replacing the numbers with your formula to calculate the range).

This gives you full power on what is the "error margin" you accept. Hope this helps!

Simple typo, fixed :)
Good call, will fix.
The amounts must be specified in cents, as floats can’t be relied upon to perform calculations. That was my #1 reason to design the library using solely integers. I wrote all about it here: https://frontstuff.io/how-to-handle-monetary-values-in-javas...
Good call, I’ll fix that
Hey! You need to use the allocate method for this. It will redistribute fractional cents and return an array of Dinero objects.