Hi.
--- In [email protected], "davor_petric" <[EMAIL PROTECTED]> wrote:
> This is the WRONG RESULT! Both calculations shouls show the same 
> result. May be a difference in the number of decimal places only. My 
> point was that the % seems to return a FALSE RESULT (but not always!?)
> 
> Mod is the reminder after a divison shown in the integer format. So, 
> if I form an expression as: expr (20/3 ++ "." ++ 20%3) I should get 
> the same result as float.division (20,3): 6.6666 and not 6.2!

Nope. 
20%3 is definitely 2 (20 - 6 * 3), i.e. the _remainder_ after dividing 
20 by 3. Now, when you divide that remainder by 6 again, you get your 
0,6667.

Mockey





Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to