{"action":"created","issue":{"url":"https://api.github.com/repos/assisrafael/angular-input-masks/issues/90","labels_url":"https://api.github.com/repos/assisrafael/angular-input-masks/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/assisrafael/angular-input-masks/issues/90/comments","events_url":"https://api.github.com/repos/assisrafael/angular-input-masks/issues/90/events","html_url":"https://github.com/assisrafael/angular-input-masks/issues/90","id":88835327,"number":90,"title":"\"Error: value.toFixed is not a function\" on ui-money-mask when ng-model value is of type float","user":{"login":"tiagopapile","id":7631568,"avatar_url":"https://avatars.githubusercontent.com/u/7631568?v=3","gravatar_id":"","url":"https://api.github.com/users/tiagopapile","html_url":"https://github.com/tiagopapile","followers_url":"https://api.github.com/users/tiagopapile/followers","following_url":"https://api.github.com/users/tiagopapile/following{/other_user}","gists_url":"https://api.github.com/users/tiagopapile/gists{/gist_id}","starred_url":"https://api.github.com/users/tiagopapile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiagopapile/subscriptions","organizations_url":"https://api.github.com/users/tiagopapile/orgs","repos_url":"https://api.github.com/users/tiagopapile/repos","events_url":"https://api.github.com/users/tiagopapile/events{/privacy}","received_events_url":"https://api.github.com/users/tiagopapile/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/assisrafael/angular-input-masks/milestones/8","html_url":"https://github.com/assisrafael/angular-input-masks/milestones/1.5.2","labels_url":"https://api.github.com/repos/assisrafael/angular-input-masks/milestones/8/labels","id":1153776,"number":8,"title":"1.5.2","description":"","creator":{"login":"assisrafael","id":1799825,"avatar_url":"https://avatars.githubusercontent.com/u/1799825?v=3","gravatar_id":"","url":"https://api.github.com/users/assisrafael","html_url":"https://github.com/assisrafael","followers_url":"https://api.github.com/users/assisrafael/followers","following_url":"https://api.github.com/users/assisrafael/following{/other_user}","gists_url":"https://api.github.com/users/assisrafael/gists{/gist_id}","starred_url":"https://api.github.com/users/assisrafael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/assisrafael/subscriptions","organizations_url":"https://api.github.com/users/assisrafael/orgs","repos_url":"https://api.github.com/users/assisrafael/repos","events_url":"https://api.github.com/users/assisrafael/events{/privacy}","received_events_url":"https://api.github.com/users/assisrafael/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":1,"state":"open","created_at":"2015-06-07T21:27:25Z","updated_at":"2015-06-28T16:33:45Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-06-16T20:40:35Z","updated_at":"2015-06-28T16:54:28Z","closed_at":null,"body":"When a ng-model is loaded with a floating value, I get the title of the message. For example:\r\n\r\n$scope.value = 345.00;\r\n\r\nTo solve, I changed the following line:\r\n\r\nreturn moneyMask.apply(value.toFixed(decimals).replace(/[^\\d]+/g,''));\r\n\r\nTo:\r\n\r\nreturn moneyMask.apply(parseFloat(value).toFixed(decimals).replace(/[^\\d]+/g,''));\r\n\r\nAnd then it worked. Confirms this bug?\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/22270524-error-value-tofixed-is-not-a-function-on-ui-money-mask-when-ng-model-value-is-of-type-float?utm_campaign=plugin&utm_content=tracker%2F1022469&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1022469&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/assisrafael/angular-input-masks/issues/comments/116298052","html_url":"https://github.com/assisrafael/angular-input-masks/issues/90#issuecomment-116298052","issue_url":"https://api.github.com/repos/assisrafael/angular-input-masks/issues/90","id":116298052,"user":{"login":"assisrafael","id":1799825,"avatar_url":"https://avatars.githubusercontent.com/u/1799825?v=3","gravatar_id":"","url":"https://api.github.com/users/assisrafael","html_url":"https://github.com/assisrafael","followers_url":"https://api.github.com/users/assisrafael/followers","following_url":"https://api.github.com/users/assisrafael/following{/other_user}","gists_url":"https://api.github.com/users/assisrafael/gists{/gist_id}","starred_url":"https://api.github.com/users/assisrafael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/assisrafael/subscriptions","organizations_url":"https://api.github.com/users/assisrafael/orgs","repos_url":"https://api.github.com/users/assisrafael/repos","events_url":"https://api.github.com/users/assisrafael/events{/privacy}","received_events_url":"https://api.github.com/users/assisrafael/received_events","type":"User","site_admin":false},"created_at":"2015-06-28T16:54:28Z","updated_at":"2015-06-28T16:54:28Z","body":"I was not able to reproduce this bug. Check the test case that I include in commit efdf302.\r\nWhat are the versions of angular and angular-input-masks and which browser you are using?"}}