Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
2464 Visualizações

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

Avatar
Cancelar
Melhor resposta

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

Example : 

line.total = -abs(line.total)

Avatar
Cancelar