in reply to Re^3: Multiplication problem
in thread Multiplication problem

This is a usefull solution. I think i can manage to rewrite the script.

Thanks

Replies are listed 'Best First'.
Re^5: Multiplication problem
by dragonchild (Archbishop) on Dec 11, 2007 at 20:56 UTC
    Please note an important distinction between the values you use to calculate with internally (denominated in cents) and what you display to the user (denominated in dollars). You will probably want to write some routines hat translate between your internal representation and what you take for input and display for output.

    This, btw, is quite common to do.


    My criteria for good software:
    1. Does it work?
    2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?