hapijs / joi

The most powerful data validation library for JS
Other
20.75k stars 1.51k forks source link

multiple bug fixed #3004

Closed sbrsubuvga closed 7 months ago

sbrsubuvga commented 7 months ago

it closes #2962

console.log(14400000/3600000) // Outputs: 4 console.log(14400000*(1/3600000)) // Outputs: 3.9999999999999996

Nargonath commented 7 months ago

I don't know if @Marsup would take up the fix but usually you need to add tests for the case you're fixing. This test would fail with the current code and be solved by your solution.

Marsup commented 7 months ago

I actually have a working branch for this issue, do you want to keep working on this or should I take over?