Subject:
|
Re: FW: Something else is needed, I think...
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Wed, 5 May 1999 21:19:21 GMT
|
Viewed:
|
1320 times
|
| |
| |
In lugnet.robotics, Kekoa Proudfoot writes:
> The one advantage to working with radix 10, on the RCX at least, is that
> the display routines use this radix, so even if you prefer working with
> some power of two radix, you might find yourself stuck converting in the
> end. Not that this is bad; I prefer to work in radix 2 for the same
> reasons you mentioned.
>
> Also, as far as explaining fixed point goes, the analogy to base 10 is
> certainly easier to understand, even if it is misleading when it comes to
> implementation.
I must admit I didn't think at radix 2 for fixed point math. It is obviously
the best choice to implement. I used radix 10 fixed point math because it came
more natural to me.
> It is also not clear what Mario meant by four decimals. Maybe he meant
> four fractional places?
Sorry I was not clear (it happens when you write in an idiom that's not your
main one...) Yes I meant four fractional digits. Any long int represent a radix
10 number multiplied by 1e4.
Mario
|
|
Message has 1 Reply: | | Re: FW: Something else is needed, I think...
|
| (...) 28.4 is a pretty good general-purpose fixed-point representation. It gives a domain of -134,217,728 to 134,217,727.9375, and you can square numbers up to 11,585 without overflow. 28.4 is also well-suited to vector graphics on relatively (...) (26 years ago, 6-May-99, to lugnet.robotics)
|
Message is in Reply To:
| | Re: FW: Something else is needed, I think...
|
| (...) The one advantage to working with radix 10, on the RCX at least, is that the display routines use this radix, so even if you prefer working with some power of two radix, you might find yourself stuck converting in the end. Not that this is (...) (26 years ago, 5-May-99, to lugnet.robotics)
|
32 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|