just on that, notice that im using a word for the value D, so anything that I multiply / divide with it in any equation (irrelivant if the answer is stored in a float) will not produce deciaml places
If i make both D and valueX Floats, and perform the equation;
D = .1
ValueX = 3.14 * D
the anser is
**broken link removed**
As you can see, its close, but no cigar, due to the nature of float algorithm. Keeping this in mind, I want the end answer to be 100% accurate, therefore keeping decimals to a minimum, theres no point having 2 mathamatical equations that could have a deciaml error(which leads to the small error above), why not just make it one. Hence the way i went about it.
As D needn't be a float, (thats if you need it at all, as its a known value - i just put it in there as an example of float point math with words & floats), its declared as a word like so,
Dim D as Word
Dim ValueX as Float
D = 100
' D is recorded in mm
ValueX = d * 314 / 100000
and the asnwer;
**broken link removed**