cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
338 Views
Registered: ‎01-30-2019

double float precision on xc7z020

Hello!

I tested the following code on xc7z020. However, the output was not as expected. When using int instead of double,

the output is ok. Is there any optimization for "double" variables? Or anyone can tell me the reason ....

SR}_@SDK6S~E[O2L)$RV$Y8.png

0 Kudos
1 Reply
Highlighted
Visitor
Visitor
326 Views
Registered: ‎01-30-2019

Ok .... I tested something else

Untitled.png

For the above source code, the output is ok.

However, the following one, output of which is wrong ....

Untitled.png

 

0 Kudos