@apetrov87 said:
Everything worked fine as long as they had opening_time = 8. Still, even then it would produce an entry of "0:00 PM".
Now that I think about it, they must've had a special case for t=12, which would still fail on t=12.5.
@apetrov87 said:
Everything worked fine as long as they had opening_time = 8. Still, even then it would produce an entry of "0:00 PM".
Now that I think about it, they must've had a special case for t=12, which would still fail on t=12.5.
@dkf said:
Except I guess there was no real type declaration used fort
at all (a C++-likeauto
is not a real variable type declaration).
Most likely they used an automatically typed language like Perl. Everything worked fine as long as they had opening_time = 8. Still, even then it would produce an entry of "0:00 PM".
When ordering a refill at a certain pharmacy, I was offered these choices for the pickup time:
HTML source:
<td style="width:442px;" align="left" colspan="2" class="myaccounttxt"> <strong>Select Pickup Time</strong><br /> <select name="hoursLeft" class="myaccounttxt"><option value=8.5>8.5:00 AM</option><option value=9.5>9.5:00 AM</option>
<option value=10.5>10.5:00 AM</option><option value=11.5>11.5:00 AM</option><option value=12.5>0.5:00 PM</option>
<option value=13.5>1.5:00 PM</option><option value=14.5>2.5:00 PM</option><option value=15.5>3.5:00 PM</option>
<option value=16.5>4.5:00 PM</option><option value=17.5>5.5:00 PM</option><option value=18.5>6.5:00 PM</option>
<option value=19.5>7.5:00 PM</option><option value=20.5>8.5:00 PM</option></select><br /><br /> </td>
I bet this was generated by something like:
for(double t = opening_time; t < closing_time; t += 1){
if(t < 12)
printf("<option value=%f>%f:00 AM</option>", t, t);
else printf("<option value=%f>%f:00 PM</option>", t, t-12);
}
Here opening_time = 8.5, as we can see on the previous page:
@MasterPlanSoftware said:
@medialint said:@PerdidoPunk said:Liters are a measure of volume, not weight.
This is true but you can also measure by weight, as do the assembly line machines, unless gravity is a variable. Which sometimes happens.
Yeah, but only on Thursdays.
Wait... what?
AFAIK gravity is a bit lower at the equator. But scales should be calibrated for that.
@MasterPlanSoftware said:
Don't let friends post on forums while high and trippin?
Can we get a PSA please?
And here is the best example to go with it:
http://forums.thedailywtf.com/forums/thread/141786.aspx
I guess the "5000 staples" figure is accurate to 1%, and there are actually 24 strips of 210.
@apetrov87 said:
That syntax would only make sense if bnum was an object containing a member variable at (of type either char* or std::string). But what you probably meant is bnum[i].
Or bnum.at(i) - I forgot that string::at() exists.
@malfist said:
bnum.at[i]
That syntax would only make sense if bnum was an object containing a member variable at (of type either char* or std::string). But what you probably meant is bnum[i].
Did anyone notice that 24K days is almost 2^31 seconds? Could be a coincidence, but it seems most likely that it somehow started the countdown at INT_MAX.
The same thing happens to me every time I clear my cookies (in FF 3.0). A single reload of the front page always fixes it, so IMHO this bug is nothing to worry about.