Keil Logo

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
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.