8
wicho
4y

* Cries
* Cries a lot

Comments
  • 3
    Sure, extra checks just to be sure.

    Might add "else if (true === true)" as well.
  • 1
    Lol that language doesn’t interpret floats correctly eh ?

    Sometimes get 1e-50 ? Lol
  • 1
    Couldn’t you just truncate the value if it’s not empty down to a certain threshold ?
  • 2
    @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)
  • 1
    @c3r38r170 ain't it fucked up at this point that floats are still flawed enough to create a scenario like this ?
  • 1
    @c3r38r170 where are floating point processors at nowawadays ? I keep seeing them mentioned, but have they been added to most consumer electronics ?
  • 1
    @MadMadMadMrMim I don't think it's a problem of the float implementation...
  • 1
    @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
  • 1
    @MadMadMadMrMim Because they are dumb.
  • 1
    @c3r38r170 maybe it’s input ?
  • 3
    @MadMadMadMrMim Stop, there's no justification. It's madness. Looks like done by a 15 yo that has just begun the PHP course.
Add Comment