Re: [cc65] Floating point support

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2002-05-22 10:45:44


On Wed, May 22, 2002 at 10:27:56AM +0200, Piotr Fusik wrote:
> IMHO best would be to have IEEE 4-byte floats. Since doubles are very
> common (probably more than floats) I would suggest built-in typedef float
> double. What does the C standard say about it? On many platforms int ==
> long, is it ok if float == double ?

float == double is ok. The standard says (similar as with integers) that the
precision of double must be larger or equal than that of floats. There exist
some (standard compliant) C compilers, that have just one floating point type.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz_at_musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2002-05-22 10:45:45 CEST