Simon Slavin wrote:
> Showing my ignorance of C here.  Does C use proper IEE755 maths when you do 
> mundane things like add two floats together ?

You probably mean IEEE 754. The C standard doesn't mandate the use of IEEE 754 
floating point arithmetic. The implementation may choose to implement it: in 
this case, it should define __STDC_IEC_559__ macro to allow applications that 
care to detect this fact (and, e.g., switch from emulation library to native 
instructions). C99 appendix F defines how C language constructs correspond to 
IEEE 754 types and operations (for those implementations that claim to support 
IEEE 754).

Nowadays, it would be difficult to find a piece of hardware, or a C 
implementation, that supports floating point arithmetic but doesn't follow IEEE 
754.

Igor Tandetnik

_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to