Getting burned with floating points early, having a strict policy of using decimal arithmetic only for all decimal numbers for decades, eventually forgetting why, become convinced that you'll never encounter it in the wild using the types of values you're actually using...
Then you assert(m >= ceil(n * 1.1)) and it all comes flooding back.
@djlink …unless you're writing #JavaScript or #TypeScript
But hey! then you're fucked from the start!
Las matrices n-dimensionales sirven para todo, hoy en día la memoria es barata (?)
Mencioné la cuenta que usaste para el boost, jajaja.
Con calma. Si precisás que mire algo desde "afuera" (desde mi instancia, o sea), acá estoy.
@ivy @djlink Also depends on the context. If you're dealing with things that must be a power-of-two fraction (ex: 0.5, 0.25, 0.125) then it might make sense to compare... although might be time to question why floating points are being used.
But, yes, most scenarios is less than a delta from the expected value.
@djlink Cries in JavaScript.
Everything is floating point here🫠