Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Lol that language doesn’t interpret floats correctly eh ?
Sometimes get 1e-50 ? Lol -
Couldn’t you just truncate the value if it’s not empty down to a certain threshold ?
-
@MadMadMadMrMim Of course there are solutions. The important thing to note is that they didn't even try to find one.
You can always if(!(int)$fifo_cost) -
@c3r38r170 ain't it fucked up at this point that floats are still flawed enough to create a scenario like this ?
-
@c3r38r170 where are floating point processors at nowawadays ? I keep seeing them mentioned, but have they been added to most consumer electronics ?
-
@c3r38r170 well I look at the code above and I think why would someone do this ?
Oh I see
Strings
Why store it as strings ?
Still if that is js
F1 which is set to 0 as a result of subtraction or addition may equal some weird value -
@MadMadMadMrMim Stop, there's no justification. It's madness. Looks like done by a 15 yo that has just begun the PHP course.
Related Rants
* Cries
* Cries a lot
joke/meme
bad code
php