in reply to Currency Format Issue

I'm not sure what you want. You test if the input is a number ending in two decimals, and then complain it "doesn't work" if you give it a number without two decimals.

The solution is obvious, isn't? Either give it a number ending in two decimals, or don't check for it.

Replies are listed 'Best First'.
Re^2: Currency Format Issue
by Anonymous Monk on Aug 26, 2010 at 15:04 UTC
    I guess what one is looking for would be if the number is not on the right format, still check it and format it properly. That would be where your answer should come up!