This question must have been asked before, but I can't find it anywhere on the forum: how can I multiply variables that hold values below one and simply get the outcome? P.e.: a=1/5; b=2/3;c=a*b....?
Is There a simple way to do this without multipying by 100 or 1000 or 10000 etc. ? It seems that all variables are rounded before multiplying.
How to multiply variables with calculated values below one
Moderator: Martin
-
- Posts: 19
- Joined: 20 Mar 2014 09:00
Re: How to multiply variables with calculated values below o
Hi,
Automagic uses integer math when both operands are integers. You can do floating point math by using numbers with a decimal point:
a=1.0/5.0; b=2.0/3.0; c=a*b
Regards,
Martin
Automagic uses integer math when both operands are integers. You can do floating point math by using numbers with a decimal point:
a=1.0/5.0; b=2.0/3.0; c=a*b
Regards,
Martin