Keil™, An ARM® Company

Technical Support

C166: DOUBLE PRECISION FLOATS TRUNCATED TO SINGLE PRECISION


Information in this article applies to:

  • C166 All Versions

SYMPTOMS

I am trying to use double precision floating point numbers in my project and I have declared them using the 'double' keyword, however, the numbers are being truncated to single precision.

CAUSE

You must configure the compiler to enable double precision floating point numbers.

RESOLUTION

Use the FLOAT64 compiler directive to enable double precision floating point numbers.

In µVision choose 'Options for Target' from the Project menu and click on the C166 tab. Check the 'Double-precision Floating-point' item.

MORE INFORMATION

  • Refer to FLOAT64 in the C166 User's Guide.

FORUM THREADS

The following Discussion Forum threads may provide information related to this topic.

Last Reviewed: Friday, July 15, 2005


Did this article provide the answer you needed?
 
Yes
No
Not Sure