I am using JSP
for view. I am using angularjs
and javascript
I have a text box, in that text box there is a value called 12.542001
. The ng-model
should contain the same but when I am showing I want to show 12.54
only on the text box.
If I work with toFixed(2)
, Then it will round the value, but I don't want to round that value...