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!
Tech Startup Dilemmas: Resilient Deployment vs. Exhaustive Tests
Build a Shopping Cart with Vue and Dinero.js
Re:Dinero.js – JavaScript library for working with monetary values
on Saturday April 21, 2018 @11:34AM (#16891782)
Simple typo, fixed :)
Re:Dinero.js – JavaScript library for working with monetary values
on Monday April 16, 2018 @04:56PM (#16852688)
Good call, will fix.
Re:Dinero.js – JavaScript library for working with monetary values
on Monday April 16, 2018 @04:51PM (#16852640)
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...
Re:Dinero.js – JavaScript library for working with monetary values
on Monday April 16, 2018 @04:05PM (#16852222)
Good call, I’ll fix that
Re:Dinero.js – JavaScript library for working with monetary values
on Monday April 16, 2018 @04:04PM (#16852213)
Hey! You need to use the allocate method for this. It will redistribute fractional cents and return an array of Dinero objects.