Enable floating point in sprintf

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

Enable floating point in sprintf

ソリューションへジャンプ
877件の閲覧回数
ArkAndyFraser
Contributor III

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

Andy

タグ(1)
0 件の賞賛
返信
1 解決策
838件の閲覧回数
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 返答(返信)
843件の閲覧回数
jiri_kral
NXP Employee
NXP Employee

Hi, 

what's STD C library linked to your project? 

0 件の賞賛
返信
840件の閲覧回数
ArkAndyFraser
Contributor III

Hi, I am using newlib_nano.

Andy

0 件の賞賛
返信
839件の閲覧回数
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