Announcement

Collapse
No announcement yet.

customdigits and negative values

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • customdigits and negative values

    On my display, I have a numeric readout that consists of two customdigits objects (number left of decimal & number right of decimal) and a decimal point image between.
    My microcontroller splits the value to be displayed into a whole number and a whole number representing the fractional part and sends these two values to their respective customdigits object.
    Everything works great, except: values between -0.99 and -0.01 won't display a negative. Example: -0.46 displays as 0.46. This is because I can't tell the whole number customdigit to display -0.
    Is there a workaround besides stacking a bunch of negative sign images on the display that only get shown when needed?
    Thanks !!!

    Click image for larger version

Name:	screen.jpg
Views:	11
Size:	80.1 KB
ID:	70915
Working...
X