Re: Poking decimals
- Posted by jbrown105 at speedymail.org Jun 26, 2003
- 466 views
Using poke4(address, number*1000) and (peek4s(address)/1000) will get you a fixed precision of 3 decimal places, at the cost of reducing the whole number part of the decimal by the 3 uppermost decimal places that a 32bit number can represent ... you probably don't need to worry about this, and if you do then you are better off using 64bit floating point instead of fixed precision. jbrown 1evan wrote: >How do you go about poking decimals into memory? I just need about 3 >decimal places of precision. -- /"\ ASCII ribbon | http://www.geocities.com/jbrown1050/ \ / campain against | Linux User:190064 X HTML in e-mail and | Linux Machine:84163 /*\ news, and unneeded MIME | http://verify.stanford.edu/evote.html