We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b732508 commit 91a8b9fCopy full SHA for 91a8b9f
test/ng/filter/filtersSpec.js
@@ -236,6 +236,14 @@ describe('filters', function() {
236
expect(number(-1e-7, 6)).toEqual('0.000000');
237
expect(number(-1e-8, 9)).toEqual('-0.000000010');
238
});
239
+
240
+ it('should filter exponentially small numbers when no fraction specified', function() {
241
+ expect(number(1e-10)).toEqual('0.000');
242
+ expect(number(0.0000000001)).toEqual('0.000');
243
244
+ expect(number(-1e-10)).toEqual('0.000');
245
+ expect(number(-0.0000000001)).toEqual('0.000');
246
+ });
247
248
249
describe('json', function() {
0 commit comments