Skip to main content
ferro
Lead
Apr 8, 2025 3:24 PM UTC
Solved

Adding snprintfDouble () to touchgfx/Unicode.hpp

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.

 

This topic has been closed for replies.
LouisBBest answer
ST Employee
Apr 9, 2025 9:26 AM UTC

Hello @ferro ,

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

BR,

Louis BOUDOST Software Engineer | TouchGFX

1 reply

LouisBBest answer
ST Employee
Apr 9, 2025 9:26 AM UTC

Hello @ferro ,

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

BR,

Louis BOUDOST Software Engineer | TouchGFX