İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
2486 Görünümler

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

Avatar
Vazgeç
En İyi Yanıt

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

Example : 

line.total = -abs(line.total)

Avatar
Vazgeç