Pos Ui? [Archive] - ProgressTalk.com
Google
 
Web ProgressTalk.com

View Full Version : Pos Ui?



lord_icon
21 Mar 2005, 04:16 AM
I am trying to develop a simple POS UI (Point Of Sale).
How can I calculate 2 ten pences for 27? How do I get to the 2 * 10 ? I know I can use MOD for the remainder after division. Though I need some help.
TIA

ChrisPaulson
22 Mar 2005, 03:39 AM
i = 27.

r = mod( 20 ).

h = i - r.

r will contain 7.

h will contain 20.