Browse
STMicroelectronics Community
FAQs
Sign In
Product forums
STM32 MCUs
STM32 MCUs Products
STM32 MCUs Boards and hardware tools
STM32 MCUs Software development tools
STM32 MCUs Embedded software
STM32 MCUs TouchGFX and GUI
STM32 MCUs Motor control
STM32 MCUs Security
STM32 MCUs Wireless
STM32 MPUs
STM32 MPUs Products
STM32 MPUs Boards and hardware tools
STM32 MPUs Embedded software and solutions
STM32 MPUs Software development tools
MEMS and sensors
MEMS (sensors)
Imaging (sensors)
Automotive and Transportation
Automotive MCUs
AutoDevKit Ecosystem
GNSS positioning
Edge AI
Interface and connectivity ICs
Power management
ST25 NFC/RFID tags and readers
STM8 MCUs
Others: hardware and software
Analog and audio
Knowledge base
STM32 MCUs
STM32 MPUs
MEMS and sensors
Analog and audio
EMI filtering and signal conditioning
Interface and connectivity ICs
Power management
Quality & reliability
Academy
About
Community guidelines
Feedback forum
Community blog
Developer news
All community
This category
This board
Knowledge base
Users
Products
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Search instead for
Did you mean:
STMicroelectronics Community
Product forums
STM8 MCUs
sprintf
Options
Subscribe to RSS Feed
Mark Topic as New
Mark Topic as Read
Float this Topic for Current User
Bookmark
Subscribe
Mute
Printer Friendly Page
sprintf
carnett1
Associate II
Options
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Email to a Friend
Report Inappropriate Content
2011-06-13
01:53 PM
Posted on June 13, 2011 at 22:53
I am using cosmic tools with the stm8-discovery board.
char buffer [15];
u8 n;
double x;
x = 300.02;
n=sprintf(buffer,''%.2f'',x);
when i run it n = null and the buffer is empty.
what is my problelm?
charles arnett
All forum topics
Previous Topic
Next Topic
0 REPLIES
0
Reply
Related Content
time interval of HAL_RTCEx_WakeUpTimerEventCallback()
in
STM32 MCUs Embedded software
2024-12-29
ADS1293 sensor interface with STM32nucleo-u083rc board
in
STM32 MCUs Products
2024-12-28
HardFault_Handler when trying to run ai_network_run
in
Edge AI
2024-12-13
lcd1602+i2c+nucleo f401re don't work on stm32cubeide but works on keil uvision
in
Others: hardware and software
2024-12-10
Losing RTC ticks after wakeup timer
in
STM32 MCUs Embedded software
2024-12-08