|
Ralph Clark wrote:
> Likewise, what is the floating point accuracy of BrickOS for variables of
> type "float" and "double" (is there such thing in BrickOS?) ?
You should look in the gnu gcc compiler documentation for this. Float
support is not OS but compiler specific. As I recall, gcc uses IEEE
float format, the specification should be found somewhere in the net.
But doing float with the brick is s-l-o-w, better avoid it if you can.
Regards,
Michael
|
|
Message has 1 Reply: | | Re: Float and int
|
| (...) Mabie Fixed Point is an answer. I dont know how it works but I have a book that suggests that a decent Fixed Point library can be faster than Floating Point if there isnt an FPU available. (22 years ago, 30-Dec-02, to lugnet.robotics.rcx.legos)
|
Message is in Reply To:
| | Float and int
|
| Does anyone know what the maximum and minimum size of integer which can be stored is? Likewise, what is the floating point accuracy of BrickOS for variables of type "float" and "double" (is there such thing in BrickOS?) ? Both of these questions (...) (22 years ago, 29-Dec-02, to lugnet.robotics.rcx.legos)
|
6 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
|
|
|
|