Sigh, part II

Published February 22, 2006
Advertisement
I got a spec today that requires me to:

store a numeric dollar value inside of a datetime type



Yes. You read that right.


I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a spec.
0 likes 5 comments

Comments

johnhattan
Not only that, but the schedule requires your code to be complete and debugged by $1.85
February 22, 2006 09:18 AM
EDI
sounds to me like a legacy rework =)

February 22, 2006 09:58 AM
Mithrandir
the table it goes into has 528 columns.

All of the numeric columns have been taken up already, and we didn't want to add yet another column. So this is their solution.

*grumble*
February 22, 2006 10:05 AM
Washu
Hehe, simple enough to do though. Assuming you're using a decimal type, you would just take the address (mmm, unsafe code), dereference it into a long, and stick it into a DateTime (ignoring the fact that decimal types are 128bit) [grin]
February 22, 2006 12:04 PM
coderx75
Quote:
Not only that, but the schedule requires your code to be complete and debugged by $1.85

That was a real LOL... I had to share with the co-workers. =D
February 22, 2006 03:39 PM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement
Advertisement