How to see a variable as float in expression view?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to see a variable as float in expression view?

ソリューションへジャンプ
1,252件の閲覧回数
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,116件の閲覧回数
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,117件の閲覧回数
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,116件の閲覧回数
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 件の賞賛
返信