>I would like to append the % sign to a variable. My syntax reads:
>
>
>store cmscomp.percent+val("%") to lccomplist
>
>
>But this comes out like 90.00 instead of reading 90.0%
>
>How can I achieve this?
val() converts a text to number. "%" is not a valid number, so it is csonverted to zero. Also, whatever "%" converts to (in this case zero) is added as a number: 90 + 0 = 90.
To combine different texts, you use the same "+" sign, but with data of type character. In this case, convert "percent" to string, with transform() or str().
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)