How to see a variable as float in expression view?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to see a variable as float in expression view?

Jump to solution
458 Views
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

Labels (1)
0 Kudos
1 Solution
322 Views
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

View solution in original post

2 Replies
323 Views
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

322 Views
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 Kudos