Hello.
I have a situation when a equation like (a*b*c*d)/(a+b+c+d) to be solved. Variables may change from 1 to 100), so result may be well out of allowed range. How to workaround such situation?
Printable View
Hello.
I have a situation when a equation like (a*b*c*d)/(a+b+c+d) to be solved. Variables may change from 1 to 100), so result may be well out of allowed range. How to workaround such situation?
Result=(a*b)/(a+b+c+d)
Result=Result*c*d
And another question. I need to have X divided by 3.6 , since we don't have fractions, I can do X*10/36. But, X*10>65536, so this also does not works. The partial workaround is X*5/18. But still, won't work for large X values. Any ideas how to do conversion?
IF your numbers are <= 100 ... a*b*c*d maximum value is ???Quote:
I have a situation when a equation like (a*b*c*d)/(a+b+c+d) to be solved. Variables may change from 1 to 100)
that is outside or inside the compiler limitations ???
just my two cents ... :rolleyes:
Alain
As with most things it depends....on the resolution and accuracy you need and/or can live with it. Try X */ 71 or X ** 18204 or use DIV32 or switch to a LONG (if using 18 series).Quote:
I need to have X divided by 3.6
/Henrik.