- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Admin
https://thedailywtf.com/images/15/q1/e151/Pic-3.jpg
Using advanced deobfuscation techniques I was able to determine Raghunathan tried to hide the fact he was visiting the Naduvannur Sree Subrahmania Swami Temple page. Either black it out properly or don't bother (especially if it's right there in the picture in plaintext).
I assume the submitter wasn't amused with "Show Error Details..." button providing exactly the same message with no additional, you know, details.
Admin
The 7th WTF with the IE error is fun!
(The site exists. And by triggering certain error codes you can get phone numbers!)
Admin
Thanks. Pictures are a barrier to understanding GUI error workflows.
Admin
That small ad has been posted before, I'm sure of it.
<!-- Emoji'd by MobileEmoji 0.2.0-->Admin
A total of $N.aN? They're using floating numbers that refer to cents and then convert to dollars by shoving a dot in the right place? That's the real WTF.
Admin
Yes, but it was somewhere in The Funny Stuff Thread IIRC, not in the main site.
Edit: I recalled correctly! http://what.thedailywtf.com/t/the-funny-stuff-thread/2628/1341
Btw, thanks to @DoctorJones for having posted just now on that thread, because that made filtering by posts he made so much easier.
Admin
This hedgehog's brain clearly need tune-up…
<!-- Emoji'd by MobileEmoji 0.2.0-->Admin
I aim to please ;-)
Admin
If your intranet page that required IE suddenly stops working, that's a sign IT in charge of the intranet didn't talk to IT in charge of the desktops, and the latter decided to push out that new version of IE...
... or the former group added a redirect, and you were in compatibility mode the whole time and didn't know it. But now you're not. IT fail all around.
Admin
Methinks ya mean "IE fail all around", spirit. No IT department is responsible for Microsoft's internal incompatibility issues.
Admin
Why do I sense ActiveX was involved here…
<!-- Emoji'd by MobileEmoji 0.2.0-->Admin
And we all know TRWTF then.
Admin
"You keep using that word. I do not think it means what you think it means."
Admin
The formatting is slightly weird, but I'm also hard pressed to say it's actually worse than
(int)(price /100) + "." + (price % 100)
or similar.Admin
Divide by 100 rather than inserting the dot in the string representation
Admin
Edited in a comment as you were replying, but... I actually don't see a particularly convincing reason that just plopping the
.
in the right place is worse. About the best thing I can come up with isprice = 5
seems like it could lead to dangertown if the "plopping the.
" step is careless...Or maybe I shouldn't say it's not slightly worse, but I don't see it rising to a "WTF" level of WTFness.
Admin
INB4 Lern2FloatingPoint.
Admin
I'll float your point
Admin
Only if you're not pretending to be an animal at the time.
Admin
FTFY. JS uses 64 bit doubles, not 32 bit floats.
fortunately integer values between
-9.007.199.254.740.991
and9.007.199.254.740.991
are stored losslessly (because all of the integers inclusively between those two numbers do not require an exponent) so the rest of your comment is correct:-P
Admin
Admin
confirm it yourself.
Admin
The hotel one is not in Latin. That's Lorem Ipsum--it's commonly used as a placeholder when you you don't have the text that is actually supposed to go there. It's meant to look like language but not be readable so as to not distract the person reviewing the layout with words.
Admin
You store the price as an integer number of cents (or whatever the smallest part you need to handle is). Never ever ever ever store money as a float.
Admin
Of course, Lorem Ipsum is no stranger to Error'd...
Admin
Hm.
Admin
I think Oracle also needs to find a better sysadmin for that site. Sending error messages like that to the client is something that rookie PHP kiddies do.
Admin
Double-precision 754 FP can represent 53bit integers losslessly...
(Sidenote: the 8087 could be (ab)used to do 64bit integer math readily -- you can still do this, but there's no reason to any longer.)
But then, Larry couldn't upgrade his yacht this year!Admin
Admin
Not really;
<!-- Emoji'd by MobileEmoji 0.2.0-->float
is always single precision,double
always... double, funnily enoughAdmin
And long double is 80 bits, IIRC. But you only very rarely see floating point in anything but 64-bit.
Admin
Let's see, here are some counterexamples.
First, let's take even in C-land. Before C99, C doesn't mandate anything about single or double-precision floats at all. You could have had an implementation that implements both with IEEE doubles, or with some other floating point representation entirely. I don't think even C99 requires it (but reserves the CPP macro
__STDC_IEC_559__
for implementations to indicate they do use IEEE floating point).Then there's Python. Note that 123456789012345 isn't exactly representable by a single-precision float, which based on a quick C experiment stores it as 123456788103168.
Admin
no. those are two separate IEEE standards (single precision and double precison)
coloquially they may be conflated but when programming one should always be precise. and therefore JS uses doubles. :-P
Admin
Admin
Reworded for less stupid-wording-ness.
Admin
python does numbers in a whole different weird way than other languages.
Admin
...which also goes to show you that without fairly specific context, you shouldn't assume too much about what
int
means either. (Even with C context, you again shouldn't really assume what it means; you just know it's at least 16 bits and is bounded.)Admin
yes, but we did have a very speciffice context. we were talking about JavaScript. and it is incorrect to say that JS uses 32 bit floats,
I'll grant you your colloquial interpretation but with a little effort you can use Double in that context and me both more correct and avoid a pedantry war. :-P
EDIT: also you'll avoid having to figure out what i meant to type.....
Admin
Admin
only when i think it's more interesting, or am very bored.
i guess i'm just not dickweedish enough to ever get one of those pedantry badgers....
Admin
No, that ship sailed a while ago:
Admin
Only 3.8 million years. Didn't know Facebook was around during the days of homo habilis.
Admin
Using . as your group separator and , as your decimal separator is TRWTF
Admin
just be glad i changed my mind.
i was going to use . for separator on the first number and , as separator on the second. "as a compromise"
Admin
Admin
...... :headdesk:
Admin
Ew.
Admin
http://www.opus-photography.net/smilies/bigsmug.png
Admin
I should have caught that too... :smile:
I guess maybe I didn't look at the version line and assumed it was Python 3...