07-02-2020 09:10 AM - edited 07-02-2020 09:15 AM
There doesn't appear to be a format string that will accomplish what you want, but this should.
edit: the way it's written, Min Precision of 0 or less will give you this behavior... 123 --> 123. (decimal on the end). That can be fixed easily enough though, of course.
Saying "Thanks that fixed it" or "Thanks that answers my question" and not giving a Kudo or Marked Solution, is like telling your waiter they did a great job and not leaving a tip. Please, tip your waiters.
07-02-2020 09:20 AM
Really nice piece of code, many thanks!
07-02-2020 10:22 AM
I would recommend to find a solution that does not depend on the localized decimal delimiter. (, or .)
07-02-2020 10:35 AM
@altenbach wrote:
I would recommend to find a solution that does not depend on the localized decimal delimiter. (, or .)
Just add another control for the delimiter, maybe an enum with those two possible values and (.) as the default. Or some dynamic way of getting the currently used delimiter from the system. But yeah, currently it definitely won't work if (.) isn't the delimiter.
Saying "Thanks that fixed it" or "Thanks that answers my question" and not giving a Kudo or Marked Solution, is like telling your waiter they did a great job and not leaving a tip. Please, tip your waiters.
07-02-2020 10:49 AM
Try this. Should not depend on localized decimal delimiter.
(It could be made into a malleable VI so it accepts scalars and arrays with any number of dimensions. :))