_REMAINDER in SX/B
ChrisP
Posts: 136
How would the remainder of a repeating decinal be stored in this variable? Is it limited to the number of places right of the decimal, or under the 255 limit somehow?
Temp1 = 256 / 75········· .4133333>
Tenths = _REMAINDER··· <413333333> ?
Temp1 = 3
Tenths = ?·· 4133333333? 4? 41?
Hoping for 4, betting on 41
Thanks, Chris
Temp1 = 256 / 75········· .4133333>
Tenths = _REMAINDER··· <413333333> ?
Temp1 = 3
Tenths = ?·· 4133333333? 4? 41?
Hoping for 4, betting on 41
Thanks, Chris
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
The remainder would be 31. Just like long dividsion in elementary school.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"SX-Video·Module" Now available from Parallax for only $28.95
http://www.parallax.com/detail.asp?product_id=30012
"SX-Video OSD module" Now available from Parallax for only·$49.95
http://www.parallax.com/detail.asp?product_id=30015
Product web site: www.sxvm.com
"Ability may get you to the top, but it takes character to keep you there."
·
Thanks, guess I shouldnt post questions at 5 in the morning... Was working in a fractional problem and couldnt get decimals out of my head. That and 256 gets truncated, going from 16 bit calculations to 8 is a stretch for me. Suppose I'll get the hang of it eventually.
Post Edited (ChrisP) : 1/14/2006 4:03:21 PM GMT