How to see a variable as float in expression view?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to see a variable as float in expression view?

跳至解决方案
1,136 次查看
ashesman
Contributor III

Hi,

 

I can not seem to work out how to see variable values in the variables or expressions views as floating point numbers.  No matter what options I select in the right click menu.  Any ideas???

163889_163889.PNGCapture.PNG

标签 (1)
0 项奖励
回复
1 解答
1,000 次查看
BlackNight
NXP Employee
NXP Employee

Hi Ashley,

Have you set the number format to 'default'?

pastedImage_3.png

Then it shows them in the 'default' format for each data type.

On that subject, you might find these article useful: https://mcuoneclipse.com/2016/01/23/show-floating-point-variable-bytes-in-eclipse-cdt/ and https://mcuoneclipse.com/2012/10/01/debugging-variables-in-hexadecimal-with-eclipse/ 

I hope this helps,

Erich

在原帖中查看解决方案

2 回复数
1,001 次查看
BlackNight
NXP Employee
NXP Employee

Hi Ashley,

Have you set the number format to 'default'?

pastedImage_3.png

Then it shows them in the 'default' format for each data type.

On that subject, you might find these article useful: https://mcuoneclipse.com/2016/01/23/show-floating-point-variable-bytes-in-eclipse-cdt/ and https://mcuoneclipse.com/2012/10/01/debugging-variables-in-hexadecimal-with-eclipse/ 

I hope this helps,

Erich

1,000 次查看
ashesman
Contributor III

Great, thanks.  that seems to have worked.  I was right clicking on the array and selecting default format which did nothing.  But selecting default number format from the top right drop down menu made the floating point array display correctly.

Thanks...

0 项奖励
回复