JG14_Smil Posted January 12, 2013 Posted January 12, 2013 (edited) Hello all and Gadroc, I made a display for my R-800 radio frequency wheels. The last wheel and display shows the last digits of the radio channel. These end in "00". My label displays "0" instead of "00". Can I get it to act like a proper decimal and display "00" instead? 124.000 Label 1 = 12 Label 2 = 4 Label 3 = 0 Label 4 = 00 (but displays "0") my display = 124.00 (works fine, just a small nitpick... 124.275 = 124.275 on my display, so no worries. ). thank you. Edited January 12, 2013 by JG14_Smil
Gadroc Posted January 14, 2013 Posted January 14, 2013 Yes you can do this. You need to change the binding to lua script instead of trigger value and use string.format like below. return string.formate("%s", TriggerValue) Just replace %s with the appropriate formatting specifiers. You can find the formatting specifiers here.
JG14_Smil Posted January 14, 2013 Author Posted January 14, 2013 Thanks very much Gadroc, I'll look into it.
Recommended Posts