Keil Logo

C166: Double Precision Floats Truncated to Single Precision


Information in this article applies to:

  • C166

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

The compiler is not configured to use double-precision floating-point numbers.

RESOLUTION

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

In µVision choose Options for Target - C166 tab. Check the Double-precision Floating-point item.

MORE INFORMATION

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

Last Reviewed: Thursday, February 25, 2021


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.