if the below data is coming through as V-WString:
0.19741
How would I round it to a number of 20%?
Thank you
Solved! Go to Solution.
Round(ToNumber([Data])*100, 1)
if you want to show the percent sign, you’d have to force it back to string using ToString and adding the “%” at the end!
@bh1789 one way of doing this, note that you cannot make it numeric format because % is string type, so when you add % the data should be in string data type
Thank you very much! Your solution gave me what I needed from metric, to rounding to percent
[numerator]/[denominator]*100 gave me 4.4444444 (numerator was 56 and denominator was 1260)
Round(ToNumber([Metric])*100,1) gave me 444
ToString([Round], 2) + '%' gave me 444%
How would I get 4.44%?
You are multiplying the Metric by 100 in your second statement...
And you are rounding to the nearest whole number - correct both and you should be fine
That worked. Thank you again!