12

No offense, but if you're expecting 0 and not -80, then you know you're using floats.... Are there really devs that don't know what floating point round off is?

Comments
  • 6
    I think it works if you use:

    clear: both;
  • 1
    Now I have to hunt for that rant to see if anyone mentioned PEMDAS...
  • 1
    @emes001 report back, we're counting on you.
  • 1
  • 0
    @Paramite At that point, there were a lot of 0 upvote posts, discussing dumb theories or trolling. Plus this kind of blows my mind that the op and commenters didn't know what was going on. It seemed like the obvious solution to me.
  • 0
    That and... blame your language...? Come on now. Bitch about PHPs real shortcomings....

    Like how checking for an array type is is_array(), but checking for existence is isset().
  • 0
    I _totally_did_not_have_ like a long response typed out in the Desktop Webapp. And I most certainly did not accidentally click outside of of the <textarea /> by like 1px causing the modal to close which triggers the unloading le <textarea /> from the DOM. All results the value/text content of my almost-rant to be discarded.

    @dfox, you reaaaaaaaaaaally should sync unposted rant content to LocalStorage (unique to rant ID) each time the text in the "post comment" changes

    http://caniuse.com//...

    Native BrowserApi === no deps, wonderful compatibility, wont bottleneck on your grandmothers computer. would take like 10 lines in 10 minutes to implement in ES5..

    I'll write if you want. It's such an easy thing to implement

    contact: pclienau@gmail.com / github.com/rozzzly

    Otherwise I'll prob just write some userscript.. meh. Take the free UX polish dewd.
  • 0
    @StefanH

    bothersome devils advocate here:

    Sure, modern ballistics' guidance system (and those of cars, etc) are thrown off by the poor handling of floating point values; loss of precision, parity bits, something and the that other thing other thing. But that's orders of magnitude less of a factor in miraculously missing missiles than accuracy of measurements, especially GPS.

    But If the US is _literally_ a dozen times a day going to spend up to 1m$$ per "smart-weapon" to bombard a few dozen innocent civilians (and potentially the intended terrorist).. well I goddamn hope they can how to use some damn arbitrary-precision integers (eg: BigInteger in java) and not primitives lmao
  • 0
    @rozzzly what do you mean? (about syncing unposted)
Add Comment