ARM Technical Support Knowledge Articles

DOUBLE PRECISION FLOATS TRUNCATED TO SINGLE PRECISION

Applies to: C166 C Compiler

Answer


Information in this article applies to:


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 uVision choose 'Options for Target' from the Project menu and click on the C166 tab. Check the 'Double-precision Floating-point' item.

MORE INFORMATION

Article last edited on: 2005-07-15 12:22:54

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential