source: frontend/node_modules/core-js-pure/modules/es.math.f16round.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 13 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 455 bytes
Line 
1'use strict';
2var $ = require('../internals/export');
3var floatRound = require('../internals/math-float-round');
4
5var FLOAT16_EPSILON = 0.0009765625;
6var FLOAT16_MAX_VALUE = 65504;
7var FLOAT16_MIN_VALUE = 6.103515625e-05;
8
9// `Math.f16round` method
10// https://tc39.es/ecma262/#sec-math.f16round
11$({ target: 'Math', stat: true }, {
12 f16round: function f16round(x) {
13 return floatRound(x, FLOAT16_EPSILON, FLOAT16_MAX_VALUE, FLOAT16_MIN_VALUE);
14 }
15});
Note: See TracBrowser for help on using the repository browser.