This is what I see:
The value is set at 160.90
, but displays as 160.8999999999
etc.
<input class="form-control" ng-model="imprint.total"
value="{{imprint.total | number:2}}" readonly>
It goes through filtering of certain inputs to get that total, but essentially it's just a price multiplied to quantity.
The value in the value attribute will be overridden by
ng-model
directive when it sets the viewvalue as it renders. You have a readonly textbox you could just as well remove the ng-model from it.With
ng-model
and to format live data entry you would need to create a directive and use parsers/formatters to format the value.