From: Mark Wilson Date: 2002-12-28T13:15:11+09:00 Subject: Re: 1210 / 100 = 12? what? I think I see the usefulness. For speed and accuracy one would scale dollars and cents to cents, but where you needed to work with the form $5.95, probably in displaying a string version of the price, you would use the modulus operator to give you the cents portion. Thank you. On Friday, December 27, 2002, at 10:59 PM, Mark Probert wrote: > > [snip] > > The other part of your question, the part about remainders, deals with > scaling. > If I do: > > irb: 1210 / 100 # 12 > irb: 1210 % 100 # 10 (scaled: 10 / 100) > > So, if I was working in dollars and cents (scaled to cents), then the > modulus > returns me the working number of cents. > > Hope this helps a little. > > > > -mark > > ----- > Mark Probert > GNPS - Optera Metro 3000 > Tel (613) 768-1082 (ESN: 398-1082) > Mob (613) 715-2045 > email: probertm@nortelnetworks.com > > >