We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Any leading zeros in decimal part of a float/double are removed after the conversion.
Example for f = 2.005
Serial.print( f, 4 ) => 2.0050 Serial.print( f ) = 2.01 Serial.print( String( f, 4 ) => 2.50 dtostrf( f, ..., 4, ... ) => 2.50
OS: Windows
Arduino IDE version: 1.8.8
STM32 core version: 1.4.0
Tools menu settings if not the default: default
Upload method: STLink
Name: STM32F1C8T6 BluePill clone
The text was updated successfully, but these errors were encountered:
[dtostrf] Fix missing leading zeros in decimal part
56ac92e
Fix stm32duino#427 Signed-off-by: Frederic Pillon <[email protected]>
Thanks @AdiGitalEU for report. This is now fix in #435
Sorry, something went wrong.
9889a09
Fix #427 Signed-off-by: Frederic Pillon <[email protected]>
5438376
fpistm
No branches or pull requests
Any leading zeros in decimal part of a float/double are removed after the conversion.
Example for f = 2.005
Serial.print( f, 4 ) => 2.0050
Serial.print( f ) = 2.01
Serial.print( String( f, 4 ) => 2.50
dtostrf( f, ..., 4, ... ) => 2.50
OS: Windows
Arduino IDE version: 1.8.8
STM32 core version: 1.4.0
Tools menu settings if not the default: default
Upload method: STLink
Name: STM32F1C8T6 BluePill clone
The text was updated successfully, but these errors were encountered: