Click here to Skip to main content
15,887,214 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralRe: That may have been a mistake... Pin
Jeroen De Dauw21-Aug-10 4:35
Jeroen De Dauw21-Aug-10 4:35 
GeneralRe: That may have been a mistake... Pin
OriginalGriff21-Aug-10 4:39
mveOriginalGriff21-Aug-10 4:39 
GeneralRe: That may have been a mistake... Pin
Jeroen De Dauw21-Aug-10 4:41
Jeroen De Dauw21-Aug-10 4:41 
GeneralRe: That may have been a mistake... Pin
OriginalGriff21-Aug-10 4:42
mveOriginalGriff21-Aug-10 4:42 
AnswerRe: That may have been a mistake... PinPopular
Luc Pattyn22-Aug-10 9:17
sitebuilderLuc Pattyn22-Aug-10 9:17 
GeneralRe: That may have been a mistake... Pin
OriginalGriff22-Aug-10 9:28
mveOriginalGriff22-Aug-10 9:28 
GeneralRe: That may have been a mistake... Pin
Luc Pattyn22-Aug-10 10:03
sitebuilderLuc Pattyn22-Aug-10 10:03 
GeneralRe: That may have been a mistake... Pin
OriginalGriff22-Aug-10 11:40
mveOriginalGriff22-Aug-10 11:40 
Luc Pattyn wrote:
should or shouldn't you use a hyphen in those inverted decimal-and-unit combinations?


Thank you for pointing out this problem; you are indeed quite correct and there should be a hyphen between the tens digit and the units digit for all values between 21 and 99, excepting (of course) those integrally divisible by ten. This also applies to such numbers when considered as part of a larger number: "one thousand and sixty-seven" or "three hundred and fourty-eight thousand". In addition, there may be a comma between the magnitude indicator and the lesser value ("one thousand, three hundred and sixty-seven") although this is not compulsory (unless there is a decimal point in the number, in which case it should appear at each three digit position to the right of the decimal).
I had completely forgotten this point, and have modified the Tip / Trick accordingly. In my defence, it has been many years since I last wrote a cheque and thus any numbers as words! Even then, to exceed one thousand on a personal cheque was not an everyday occurrence... Laugh | :laugh:

I have corrected this, and provided credit as is only appropriate.Thumbs Up | :thumbsup:
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.

GeneralRe: That may have been a mistake... Pin
Luc Pattyn22-Aug-10 11:50
sitebuilderLuc Pattyn22-Aug-10 11:50 
GeneralRe: That may have been a mistake... Pin
OriginalGriff22-Aug-10 22:00
mveOriginalGriff22-Aug-10 22:00 
GeneralRe: That may have been a mistake... Pin
PIEBALDconsult22-Aug-10 11:55
mvePIEBALDconsult22-Aug-10 11:55 
GeneralRe: That may have been a mistake... Pin
Luc Pattyn22-Aug-10 12:00
sitebuilderLuc Pattyn22-Aug-10 12:00 
GeneralRe: That may have been a mistake... Pin
PIEBALDconsult22-Aug-10 17:48
mvePIEBALDconsult22-Aug-10 17:48 
GeneralRe: That may have been a mistake... Pin
Robert Rohde22-Aug-10 20:49
Robert Rohde22-Aug-10 20:49 
GeneralRe: That may have been a mistake... Pin
OriginalGriff22-Aug-10 21:13
mveOriginalGriff22-Aug-10 21:13 
GeneralRe: That may have been a mistake... Pin
Daniel Grunwald23-Aug-10 11:11
Daniel Grunwald23-Aug-10 11:11 
GeneralRe: That may have been a mistake... Pin
Peter_in_278025-Aug-10 13:24
professionalPeter_in_278025-Aug-10 13:24 
GeneralRe: That may have been a mistake... Pin
OriginalGriff26-Aug-10 0:36
mveOriginalGriff26-Aug-10 0:36 
GeneralString "bitmaps" Pin
Gordon Kushner20-Aug-10 2:32
Gordon Kushner20-Aug-10 2:32 
GeneralRe: String "bitmaps" Pin
PIEBALDconsult20-Aug-10 3:13
mvePIEBALDconsult20-Aug-10 3:13 
GeneralRe: String "bitmaps" Pin
CDP180220-Aug-10 4:32
CDP180220-Aug-10 4:32 
GeneralRe: String "bitmaps" Pin
Gordon Kushner20-Aug-10 5:22
Gordon Kushner20-Aug-10 5:22 
GeneralRe: String "bitmaps" Pin
Richard A. Dalton20-Aug-10 4:39
Richard A. Dalton20-Aug-10 4:39 
GeneralRe: String "bitmaps" Pin
Gordon Kushner20-Aug-10 5:20
Gordon Kushner20-Aug-10 5:20 
GeneralRe: String "bitmaps" Pin
Richard A. Dalton20-Aug-10 5:53
Richard A. Dalton20-Aug-10 5:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.