Skip to Content
Menu
This question has been flagged
1 Reply
1955 Views

I want to automatically convert the entered float value as negative value in form

Avatar
Discard
Best Answer

Try with -abs() method.It will convert your value in negative format.

Example : 

line.total = -abs(line.total)

Avatar
Discard