|ARM Technical Support Knowledge Articles|
Applies to: C51 C Compiler
Information in this article applies to:
It appears that I can use '0E' in my source code and it always evaluates to zero. What is '0E' and why is it zero?
'0E' is the floating point number zero, and should be written as 0E0. A bug in the compiler results in '0E' being accepted as well as 0E0. This will be fixed in future versions.
Use 0E0 in your code and this will ensure compatibility with future compilers.
Refer to the ANSI C Standard, section 18.104.22.168 Floating Constants for more information on the components of a floating point constant.
Article last edited on: 2005-07-19 10:22:52
Did you find this article helpful? Yes No
How can we improve this article?