Skip to main content
ferro
Lead
April 8, 2025
Solved

Adding snprintfDouble () to touchgfx/Unicode.hpp

  • April 8, 2025
  • 1 reply
  • 404 views

Dear Gfx Team,

Could you possibly add a variant of snprintf() for double please ?

In touchgfx/Unicode.hpp, there is a float version

static UnicodeChar * snprintfFloat
(
 UnicodeChar * dst ,
 uint16_t dstSize ,
 const char * format ,
 const float value
)

 

And for double, it would be

static UnicodeChar * snprintfDouble
(
 UnicodeChar * dst ,
 uint16_t dstSize ,
 const char * format ,
 const double value
)

 

Thanks.

 

Best answer by LouisB

Hello @ferro ,

Thanks for your suggestion ! I will be discussed with the team.

BR,

1 reply

LouisBBest answer
ST Employee
April 9, 2025

Hello @ferro ,

Thanks for your suggestion ! I will be discussed with the team.

BR,