Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
2468 Tampilan

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

Avatar
Buang
Jawaban Terbai

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

Example : 

line.total = -abs(line.total)

Avatar
Buang