MCPcopy Index your code
hub / github.com/csev/py4e / round

Function round

code/gmane/d3.v3.js:2404–2407  ·  view source on GitHub ↗
(date)

Source from the content-addressed store, hash-verified

2402 var d3_time_prototype = Date.prototype;
2403 function d3_time_interval(local, step, number) {
2404 function round(date) {
2405 var d0 = local(date), d1 = offset(d0, 1);
2406 return date - d0 < d1 - date ? d0 : d1;
2407 }
2408 function ceil(date) {
2409 step(date = local(new d3_date(date - 1)), 1);
2410 return date;

Callers 4

positionFunction · 0.70
__mul__Method · 0.50
__imul__Method · 0.50

Calls 1

offsetFunction · 0.70

Tested by

no test coverage detected