Please enable JavaScript to use RhodeCode Enterprise
Commit Description:
add model solution
Commit Description:
add model solution
'use strict' ;
var $export = require ( './_export' );
var $fails = require ( './_fails' );
var aNumberValue = require ( './_a-number-value' );
var $toPrecision = 1.0 . toPrecision ;
$export ( $export . P + $export . F * ( $fails ( function () {
// IE7-
return $toPrecision . call ( 1 , undefined ) !== '1' ;
}) || ! $fails ( function () {
// V8 ~ Android 4.3-
$toPrecision . call ({});
})), 'Number' , {
toPrecision : function toPrecision ( precision ) {
var that = aNumberValue ( this , 'Number#toPrecision: incorrect invocation!' );
return precision === undefined ? $toPrecision . call ( that ) : $toPrecision . call ( that , precision );
}
});
Site-wide shortcuts
/
Use quick search box
g h
Goto home page
g g
Goto my private gists page
g G
Goto my public gists page
n r
New repository page
n g
New gist page
Repositories
g s
Goto summary page
g c
Goto changelog page
g f
Goto files page
g F
Goto files page with file search activated
g p
Goto pull requests page
g o
Goto repository settings
g O
Goto repository permissions settings