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?
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 ???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 ...
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
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).I need to have X divided by 3.6
/Henrik.
Bookmarks