cancel
Showing results for 
Search instead for 
Did you mean: 

touchgfx float value

Angle
Associate II

Hi, how can I do if I want to display the float value in touchgfx screen?

so, this is my stm32cubeide main.c which i want to display this type of data on the screen.

0693W00000Y7F1iQAF.png 

so I extern into model.cpp file.0693W00000Y7F2HQAV.png 

then I put the float value here? I got confuse since a lot of tutorial only using the uint16_t.0693W00000Y7F3UQAV.png 

Is it correct or not ? please advice me and guide me for the step or any can i refer

1 ACCEPTED SOLUTION

Accepted Solutions
Yoann KLEIN
ST Employee

Hello @Angle​ ,

@ktrofimo​ is right, the best solution for that is to use Unicode::​snprintfFloat() method with wildcards in a TextArea for example.

/Yoann

Yoann KLEIN
ST Software Developer | TouchGFX

View solution in original post

2 REPLIES 2
ktrofimo
Senior III
Yoann KLEIN
ST Employee

Hello @Angle​ ,

@ktrofimo​ is right, the best solution for that is to use Unicode::​snprintfFloat() method with wildcards in a TextArea for example.

/Yoann

Yoann KLEIN
ST Software Developer | TouchGFX