07-10-2003, 10:26 PM
Congratulations, BinarySHOCK, on a very clean, structured and complete piece of code. This is an example of code that you would want to put into production. It doesn't just say that the input is invalid, it tells the user why!
I can't check it right now, I don't have access to my compiler. But, it looks good. I did notice however that you don't allow a leading decimal point. This should be allowed when maxdecimals is greater than zero. Example: when maxdecimals is 2, then .75 would be valid.
*****
I can't check it right now, I don't have access to my compiler. But, it looks good. I did notice however that you don't allow a leading decimal point. This should be allowed when maxdecimals is greater than zero. Example: when maxdecimals is 2, then .75 would be valid.
*****