1000 * 150 = 18928 ?!?
am insane?
i'm trying work out why i'm getting unexpected values, second line should identical top line, , result same, life of me, cannot see heck going on...
help!
code: [select]
serial.println(1000 * 150);
serial.println(e12[i-1] * multiply_factor);i'm trying work out why i'm getting unexpected values, second line should identical top line, , result same, life of me, cannot see heck going on...
help!
1000 integer. 150 integer. 150,000 not integer.
the compiler using integer arithmetic integer variables, expecting integer result, not get, given actual inputs.
the types of e12 , multiply_factor unknown, can not tell why works.
the compiler using integer arithmetic integer variables, expecting integer result, not get, given actual inputs.
the types of e12 , multiply_factor unknown, can not tell why works.
Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > 1000 * 150 = 18928 ?!?
arduino
Comments
Post a Comment