PDA

View Full Version : BS2P integer math - decimal help!



Jsav
04-13-2007, 07:57 AM
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.

Unsoundcode
04-13-2007, 08:03 AM
Hi Jsav, there was a thread discussing this a few down from here

http://forums.parallax.com/showthread.php?p=642778

Jeff T.

Jsav
04-13-2007, 08:33 AM
thanks a lot for the link