on 2023 Feb 23 11:08 AM
Hi Experts,
How to Move minus sign(-) from end to start of field.
below this code only replace the value but i didn't find any solution how to move minus sign (-) to start of field.
EX. 76800-, i want to display it as -76800
[{{#eachJoin api_service_response.default.body.d.results}} {{formatNumber (replace NET_VAL '-' '') 2}}
{{/eachJoin}}]
Thanks in advance! 🙂
Riya Shakya
Request clarification before answering.
It depends how much information you know about the return value ahead of time and as Jonas said whether it’s a string or number
assuming it’s a string and the minus sign only appears for negative numbers and always appears for negative numbers, you can check for occurrences of - and if 1, run your function and add the minus at the beginning with append
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
92 | |
11 | |
9 | |
9 | |
7 | |
5 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.