Sha256: 14d892714f691344df4a40a774649381152411bf35bbbe3d492fc5a77142b27c

Contents?: true

Size: 497 Bytes

Versions: 20

Compression:

Stored size: 497 Bytes

Contents

describe('Number', function () {
    'use strict';
    
    describe('toFixed', function () {
        it('should convert numbers correctly', function () {
            expect((0.00008).toFixed(3)).toBe('0.000');
            expect((0.9).toFixed(0)).toBe('1');
            expect((1.255).toFixed(2)).toBe('1.25');
            expect((1843654265.0774949).toFixed(5)).toBe('1843654265.07749');
            expect((1000000000000000128).toFixed(0)).toBe('1000000000000000128');
        });
    });

});

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
kms-1.2.1 vendor/assets/bower_components/es5-shim/tests/spec/s-number.js
kms-1.2.0 vendor/assets/bower_components/es5-shim/tests/spec/s-number.js
kms-1.1.0 vendor/assets/bower_components/es5-shim/tests/spec/s-number.js
kms-1.0.1 vendor/assets/bower_components/es5-shim/tests/spec/s-number.js
kms-1.0.0 vendor/assets/bower_components/es5-shim/tests/spec/s-number.js
kms-0.9.0 vendor/assets/bower_components/es5-shim/tests/spec/s-number.js
kms-0.8.0 vendor/assets/bower_components/es5-shim/tests/spec/s-number.js
kms-0.7.0 vendor/assets/bower_components/es5-shim/tests/spec/s-number.js
kms-0.6.0 vendor/assets/bower_components/es5-shim/tests/spec/s-number.js
kms-0.5.0 vendor/assets/bower_components/es5-shim/tests/spec/s-number.js
kms-0.4.2 vendor/assets/bower_components/es5-shim/tests/spec/s-number.js
jruby_activiti-2.0.8 web/public/editor-app/libs/es5-shim-15.3.4.5/tests/spec/s-number.js
jruby_activiti-2.0.7 web/public/editor-app/libs/es5-shim-15.3.4.5/tests/spec/s-number.js
jruby_activiti-2.0.6 web/public/editor-app/libs/es5-shim-15.3.4.5/tests/spec/s-number.js
jruby_activiti-2.0.5 web/public/editor-app/libs/es5-shim-15.3.4.5/tests/spec/s-number.js
jruby_activiti-2.0.4 web/public/editor-app/libs/es5-shim-15.3.4.5/tests/spec/s-number.js
jruby_activiti-2.0.3 web/public/editor-app/libs/es5-shim-15.3.4.5/tests/spec/s-number.js
jruby_activiti-2.0.2 web/public/editor-app/libs/es5-shim-15.3.4.5/tests/spec/s-number.js
jruby_activiti-2.0.1 web/public/editor-app/libs/es5-shim-15.3.4.5/tests/spec/s-number.js
jruby_activiti-2.0.0 web/public/editor-app/libs/es5-shim-15.3.4.5/tests/spec/s-number.js