Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Issue with '| currency ' while entering multiple 9's in angularJS1.2 with all Browsers #10609

Closed
@kpranay

Description

@kpranay

From number 9999999999999999 to 999999999999999999 showing value as 10,000,000,000,000,000.00 to 1,000,000,000,000,000,000.00 . From 9999999999999999999 to 99999999999999999999 showing NaN.00 . then onward showing result in expression from which not equal to entered number.(ex: For 999999999999999999999 showing 1e+21).

Sample :

<!doctype html>

<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.28/angular.js"></script>
<div ng-app="" ng-controller="test1">
    <input type="number" ng-model="fee">
    <p>amount: <span>{{fee | currency}}</span></p>
</div>
<script> function test1($scope) { $scope.fee=100; } </script>
</body>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions