cancel
Showing results for 
Search instead for 
Did you mean: 

Adding snprintfDouble () to touchgfx/Unicode.hpp

ferro
Lead

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.

 

1 ACCEPTED SOLUTION

Accepted Solutions
LouisB
ST Employee

Hello @ferro ,

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

BR,

Louis BOUDO
ST Software Developer | TouchGFX

View solution in original post

1 REPLY 1
LouisB
ST Employee

Hello @ferro ,

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

BR,

Louis BOUDO
ST Software Developer | TouchGFX