Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
2466 Vistas

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

Avatar
Descartar
Mejor respuesta

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

Example : 

line.total = -abs(line.total)

Avatar
Descartar