Get percentage
Ahmed
Forums
Hi,
I need to do a calcul to get a result in percentage % , so is there any function or script to do it ?
as alternative solution what I'm doing is : creating new numeric field and I insert this fomule : (Column A / Column B )*100
Thank you.
Hi Ahmed,
Hi Ahmed,
I would probably change your equation if you expect to have negative percentages or over 100% as the % is being inserted in position 6 so it is possible that it might get inserted before the last number. I would use:
(@Str(( (A /B) * 100 );0;2) + "%"
This way you are always sure that the last character is the percentage.
Hi Ahmed,
Hi Ahmed,
I would just do it the way you said, create a virtual field with that formula. You can easily incorporate it into a script if you want.
Thanks
Brian