Skip to Content
Menú
This question has been flagged
1 Respondre
2458 Vistes

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

Avatar
Descartar
Best Answer

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

Example : 

line.total = -abs(line.total)

Avatar
Descartar