To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 3049
3048  |  3050
Subject: 
Re: Float and int
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Mon, 30 Dec 2002 10:57:23 GMT
Viewed: 
2695 times
  
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
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR