You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dtostrf() implementation is loosing a negative sign, if the input "double" number falls in the
range -1.0 < number_f < 0.0.
Likely to this part of the code in the dtostrf.c
Describe the bug
Issue firstly reported here:
http://stm32duino.com/viewtopic.php?f=49&t=4650&p=54273#p54273
dtostrf()
implementation is loosing a negative sign, if the input "double" number falls in therange -1.0 < number_f < 0.0.
Likely to this part of the code in the
dtostrf.c
Arduino_Core_STM32/cores/arduino/avr/dtostrf.c
Lines 52 to 54 in 03557f3
since integer part is "0", negation doesn't have any meaning.
To Reproduce
Use
dtostrf
with number in range -1.0 < number_f < 0.0The text was updated successfully, but these errors were encountered: