How to print a floating type?

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

How to print a floating type?

1,731 次查看
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 项奖励
回复
2 回复数

1,641 次查看
quanjunzhang
Contributor III

printf1.PNG

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

0 项奖励
回复

1,641 次查看
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 项奖励
回复