Copy link to clipboard
Copied
I have a percentage with 3 decimal places, however I need to hide the 3rd decimal number if it is a zero. What would be the script for this?
Copy link to clipboard
Copied
That would require changing the field's formatting on the fly. There is a little documented funciton AFPercent_Format function that might work.
Copy link to clipboard
Copied
Disregard the info about it being a "percentage". This symbol is being added separately to this field. I'm really just looking for a script that will drop a zero if the 3rd digit is a zero. For example if 8.250 it will appear as 8.25.