[previous] MISRA-C:2004  Rule  1.5:  (Advisory) [next] Floating-point implementations should comply with a defined floating-point standard.
Floating-point arithmetic has a range of problems associated with it. Some (but not all) of the problems can be overcome by using an implementation that conforms to a recognised standard. An example of an appropriate standard is ANSI/IEEE Std 754 [21].

The definition of the floating-point types, in accordance with Guideline , provides an opportunity for noting the floating-point standard in use, for example:

/* IEEE 754 single-precision floating-point */
typedef float float32_t;


No QAC messages cover this rule.



(c) The Motor Industry Research Association, 2004
QA C Source Code Analyser 8.1.2
MISRA-C:2004 Compliance Module 3.2
© 2013 Programming Research
www.programmingresearch.com
Personality Groups | Glossary | Message Index | MISRA-C:2004 Rule Index Contents