Copy link to clipboard
Copied
Hi everybody, I am using the following...
title.p.text = 'team1' + Number(loadedData[1][10]) + Number(loadedData[1][11])) * 100 + ' ' + '%' ;
my problem is that the last part (+ '%') is not working, I suppose that the numerical function has not been stoped, thats why I can not see %
any suggestions?
Regards
Pancho
Why are you doing + ' ' + '%' instead of just + ' %' ?
In fact, why are you putting a space between the number and the percent sign at all? That's not normal formatting.
Anyway, you should be wrapping the entire math part of that code in parentheses.
Copy link to clipboard
Copied
Maybe the size of your text field is not big enough and the percent sign is being cropped off.
Try setting the text to only '%' or another small value and see if it works.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Check if your font is embedded and if it can show special characters.
If you don't know how to do it, select your text field, open the Properties panel, go to Embed > Character ranges and check Punctuation or All.
Copy link to clipboard
Copied
I have every character already chosen, thanks for the answer. I almost sure that i need somehow to distinguish the mathematical functions from the %
Copy link to clipboard
Copied
It's really odd because I tried your code here and it works for me. The percent char appears normally.
Copy link to clipboard
Copied
Why are you doing + ' ' + '%' instead of just + ' %' ?
In fact, why are you putting a space between the number and the percent sign at all? That's not normal formatting.
Anyway, you should be wrapping the entire math part of that code in parentheses.
Copy link to clipboard
Copied
I was just trying to separate the % from the rest, normally I will have them together, but still it does not help
Find more inspiration, events, and resources on the new Adobe Community
Explore Now