ascolda Posted December 26, 2013 Report Share Posted December 26, 2013 Hello everybody, my question is a really simple one. Output data in my case is numbers from 0000 to 9999. It comes in the string format and I need to display it in the number format which would always have four digits. "Decimal string to number" function deletes non-significant zeroes before number, it makes number 126 out of "0126" string. Is there a possibility to display decimal number which always has four digits? Thanks! Quote Link to comment
gleichman Posted December 26, 2013 Report Share Posted December 26, 2013 Use "Format Into String" with a format string of "%04d" Quote Link to comment
crossrulz Posted December 26, 2013 Report Share Posted December 26, 2013 This is sounding strictly like a display format issue on the numeric indicator. Right-click on the indicator and choose "Display Format". You can also get to this via "Properties" and finding the Display Format tab. I recommend going into the Advanced editing mode and put in "%04d". This will require the display to have at least 4 digits, filling on the left 0s. 1 Quote Link to comment
ascolda Posted December 26, 2013 Author Report Share Posted December 26, 2013 This is sounding strictly like a display format issue on the numeric indicator. Right-click on the indicator and choose "Display Format". You can also get to this via "Properties" and finding the Display Format tab. I recommend going into the Advanced editing mode and put in "%04d". This will require the display to have at least 4 digits, filling on the left 0s. Thanks a lot, it worked! As I said it was a really simple problem. I should definitely get into formatting codes. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.