Enable floating point in sprintf

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

Enable floating point in sprintf

跳至解决方案
872 次查看
ArkAndyFraser
Contributor III

Is there a linker flag that allows sprintf to support floating point formatting on the FS32K144?

Andy

标记 (1)
0 项奖励
回复
1 解答
833 次查看
ArkAndyFraser
Contributor III

Actually, that was the pointer I was looking for - I changed the standard library to newlib and floating point formatting is working fine now.

Andy

在原帖中查看解决方案

3 回复数
838 次查看
jiri_kral
NXP Employee
NXP Employee

Hi, 

what's STD C library linked to your project? 

0 项奖励
回复
835 次查看
ArkAndyFraser
Contributor III

Hi, I am using newlib_nano.

Andy

0 项奖励
回复
834 次查看
ArkAndyFraser
Contributor III

Actually, that was the pointer I was looking for - I changed the standard library to newlib and floating point formatting is working fine now.

Andy