Shop OBEX P1 Docs P2 Docs Learn Events
BS2P integer math - decimal help! — Parallax Forums

BS2P integer math - decimal help!

JsavJsav Posts: 25
edited 2007-04-13 00:33 in BASIC Stamp
Hello again everybody, I have another question about programming the BS2P


I know it only does whole integer math. What if I really need it to use a decimal constant in a calculation?


Am I SOL or is there another solution? We need to use a conversion from V to grams then grams to pounds, we can reduce this to 1 step, but still have an odd decimal value that needs to be used at least four times. This will return an odd decimal value that needs to be used in yet another calculation.

Any ideas?



Edit: Please take it easy on me if the answer is already out there, this is a great resource so it's the first place I came.

Comments

Sign In or Register to comment.