Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
2457 Prikazi

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

Avatar
Opusti
Best Answer

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

Example : 

line.total = -abs(line.total)

Avatar
Opusti