0

Text formatting channel padding

Ryan Pizzirusso 3 weeks ago in IQANdesign updated 1 week ago 2

There should be a way to set fields in the Text Formatting Channel to have padding with leading 0s. E.g. If set to be padded to 3 digits then 5 would be printed as "005". This is effectively the "Number of Decimals" filed, but in the other direction.

An application would be for a clock formatted string (e.g. for countdowns). currently, 0 hours, 5 minutes, 17 seconds would print as "0:5:7" instead of the desired "00:05:07".

For searching, this may be referred to as Padding, Leading Zeros, Leading 0s, Fixed Length Numbers, Number of Digits, or Significance.

There is a similar feature request here, Timer Units / Software / IQAN, with a suggestion for a workaround. 

Thank you for showing me the work around.


I do feel this is worth keeping separate as "Timer Units / Software / IQAN" focuses on time formatting (the comment calls out having a specific time formatting selection) while this is requesting an option to specify number of digits to the left of the decimal point for any number.