angular/angular.js — pull request #2937 by pmeskers (2013-06-12 02:35:24+00:00)
Title: Issue #2456 Fix -- number filter handles exponentially small numbers

When using the number filter with small exponentially small numbers (those in scientific notation), the filter was previously taking no action on the input.

This would result in output that is not actually filtered to a certain number of decimal places. Since the filter already detects when a number has an exponent, the simplest solution for this was to use toFixed() on the number. See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toFixed

Included in this pull request are the updated specs, and the fix to make them pass. Feedback greatly appreciated!

Cheers