Shop OBEX P1 Docs P2 Docs Learn Events
Integer Maths in Spin — Parallax Forums

Integer Maths in Spin

RobiomRobiom Posts: 9
edited 2010-07-22 14:39 in Propeller 1
Sorry for such a lame question but I cannot find the answer in the manual!

I have an equation in Spin and need to know if the answer is an integer. I think it will be but what do you guys think.

Code is:· datarate := (500_000_000/(command[noparse][[/noparse]3] * 10416))

Variables datarate·and command[noparse][[/noparse]3] are longs

Thanks for your help

Comments

Sign In or Register to comment.