avishorp / TM1637

Arduino library for TM1637 (LED Driver)
GNU Lesser General Public License v3.0
427 stars 218 forks source link

Negative sign seems misplaced with leading zeroes #86

Closed AlSimons closed 3 years ago

AlSimons commented 3 years ago

With leading zeroes turned on, the minus sign is before the first non-zero digit, instead of at the left of the display, for instance, "00-7". This may be a design decision, but it seems surprising, I had expected it to show "-007". Let me know if you'd like me to take a crack at a patch. Checked against latest code as of commit 3cca196. -Al

AlSimons commented 3 years ago

I see that I missed the comment in the header file, "NOTE: leading zero is not supported with negative numbers." Too bad, but so be it. Closing. -Al