As For JavaScript...
Обсуждения — @AsForJsTalks
Live stream started
AS Showing posts older than #358 · Back to latest


"use strict";
function doSum( theInc ) {
var theSummator = 0;
for ( var theLimit = 0; theLimit < 1073741824; theLimit++ ) {
theSummator += theInc;
}
return theSummator;
}
console.log(
doSum( 1 )
, doSum( -1 )
, doSum( 0.1 )
);
1073741824
-1073741824
107374180.7058823
doSum таким образом чтобы: