Luck doesn't come into it.
You can easily impliment 'pseudo-floats' using PICBasics integers. You just need to fiddle around a bit. In it's simplest form you use a WORD for the significant digits, and a BYTE for the fiddly stuff. Six BITs of that BYTE to keep track of powers/scale, one BIT to flag if your scale is negative or positive, and one to indicate if the entire value is negative or positive. So, with 24 bits to play with, you can have positive or negative values from 9.999 x 10^63 right down to as small as 9.999 x 10^-63.
Why not impliment proper floats yourself... go here and download standard IEEE754.
http://shop.ieee.org/ieeestore/
Education Costs! Don't want to spend the money, but you've got a bit of time? Then follow the links here and get some education in floats for free...
http://www.abdn.ac.uk/~eng030/eg2060/eg2060.htm
Ultimately those of us that have implimented float solutions in PBP have invested a great deal of time and effort (and ultimately money) in doing so, and some like Al Williams (who by the way also uses PBP)...
http://www.al-williams.com/pak1.htm
... scrape their living from selling solutions to those that are unable or unwilling to do it for themselves. It would be unfair to people like Al to post ready canned routines, as it would kill their business overnight.
Melanie




Bookmarks