Enable floating point in sprintf

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

Enable floating point in sprintf

Jump to solution
292 Views
ArkAndyFraser
Contributor III

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

Andy

Tags (1)
0 Kudos
Reply
1 Solution
253 Views
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

View solution in original post

3 Replies
258 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

what's STD C library linked to your project? 

0 Kudos
Reply
255 Views
ArkAndyFraser
Contributor III

Hi, I am using newlib_nano.

Andy

0 Kudos
Reply
254 Views
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