in reply to Re^2: Surviving 'Illegal division by zero'
in thread Surviving 'Illegal division by zero'
Another way to look at it is that you can now parse, format, and handle anything to do with numbers in one place. If you want to change how you deal with numeric values, simply change the class. There's your global change, but it's nicely encapsulated.
A last concept to leave you with - if someone were to take your code and wrap it in something else, which is the politer way to handle things?
------
We are the carpenters and bricklayers of the Information Age.
Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose
I shouldn't have to say this, but any code, unless otherwise stated, is untested