Sarower Jahan Sarower Jahan - 1 year ago 105
jQuery Question

Convert negative and positive numbers to positive values

I am getting a dynamic value. Sometimes it comes with positive value and sometimes with negative value. But I always need a positive value. Is there any way to convert all negative or positive values to positive values?

Answer Source

You can try by this way..


W3 Schools Demo

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download