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 / 3048
3047  |  3049
Subject: 
Re: Float and int
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Mon, 30 Dec 2002 01:17:33 GMT
Viewed: 
2700 times
  
Ralph Clark wrote:

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 could be answered if someone could give me a
breakdown of how integers and floats are stored by the microprocessor (the
number of bits for the exponent and mantissa, etc).

Many thanks,
Ralph Clark
int is 16 bits, big endian, signed. It goes from -32768 to 32767. unsigned
int goes from 0 to 65535. char is 8, long is 32, long long is 64, with the
standard limits. Floats and doubles are emulated in software, as the H8/300
processor has no native support for them. They are standard IEEE format and
have the standard IEEE limits (which I don't know.)



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
    

Custom Search

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