Another programmer's rant

Jun 17, 2005 15:00

On-input test: Input must consist of only plus, minus, digits and decimal separators
On-submission test: Input must be a valid floating point number with a decimal separator

Issue: In the first case, a 'decimal separator' is equivalent to a period. In the second case a 'decimal separator' is locale dependent, i.e. a comma in Norway.

Well, I managed to work around it. But for you programmers out there, I guess there is a lesson here for us all. Mixing sprintf's with higher-level Windows number manipulation is disadviced.

programming

Previous post Next post
Up