Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem calculating an arithmetic expression
#1
I have a problem calculating a simple arithmetic expression:

double dSize
out 1 + dSize/100

where dSize = 10

gives me 0.11 instead of 1.1

It seems to be as if QM has divided the 1 by the 100 and added it to the result of dSize/100.

Am I going crazy?

Could there be any problem with parsing? I can send you my file if you like. It is still my Freehand mouse zooming program. (I am adding proportional zoom. Makes sense: if you are at 20% zoom, then zoom minus 10% is a bit too much...)

tia

Avraham
#2
See here: Operator priority
Well thats all for now, 3M


Forum Jump:


Users browsing this thread: 1 Guest(s)