跳至內容
選單
此問題已被標幟
1 回覆
2479 瀏覽次數

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)

頭像
捨棄