How to print a floating type?

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

How to print a floating type?

701 Views
quanjunzhang
Contributor III

DBG_vPrintf() could only print integers through UART. 

I try printf(), but there was a compilation error.

How can I print floating point types?

Thanks very much!

0 Kudos
2 Replies

611 Views
quanjunzhang
Contributor III

printf1.PNG

Application Notes:JN-AN-1217-Zigbee-3-0-Base-Device

0 Kudos

611 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Zhang,

JN does not support floating point representation. You could handle variable as integer and the application will know that is decimal if you print it.

Regards,

Mario

0 Kudos