Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
2460 มุมมอง

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

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

Example : 

line.total = -abs(line.total)

อวตาร
ละทิ้ง