on 06-02-2011 4:37 PM
Hello All,
I have to remove negative sign(-) in message mapping and pass only positive value to the target.
Is there any standard func avble in PI?
Thanks,
Regards,
Moorthy
'abs' is supposed to be the standard way of doing it. But it has a bug. many a times, we have got wrong values due to the standard abs function.
However, you can also do the same by using the replace text function by replacing the '-' with empty constant.
Regards,
Ninu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Simple. Use abs arithmetic function. This will remove negative sign if you get in the beginning
-45 -> abs -> 45
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.