Having touble here getting my program to process
degrees=180-(count*4.5/1000)
count max value about 40000
The code does compile but practically it does not work.
Can you please advise me ?
Many thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Having touble here getting my program to process
degrees=180-(count*4.5/1000)
count max value about 40000
The code does compile but practically it does not work.
Can you please advise me ?
Many thanks
Integer only.
180-(count*45/100)... is the same
OOPPPS
=180-(count*45/10/1000)
And, as the calc of 'calc*45' is very big, you need to cast the calc as follows.
DIM ccount as Word
DIM result as Word
ccount = 20000
result=180-( ( [LONG]ccount*45) /10/1000) 'you can simplify