MCPcopy
hub / github.com/greensock/GSAP / _round

Function _round

esm/utils/paths.js:39–41  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

37},
38 //if progress lands on 1, the % will make it 0 which is why we || 1, but not if it's negative because it makes more sense for motion to end at 0 in that case.
39_round = function _round(value) {
40 return Math.round(value * _roundingNum) / _roundingNum || 0;
41},
42 _roundPrecise = function _roundPrecise(value) {
43 return Math.round(value * 1e10) / 1e10 || 0;
44},

Callers 6

getRotationAtBezierTFunction · 0.70
subdivideSegmentFunction · 0.70
getPositionOnPathFunction · 0.70
pointsToSegmentFunction · 0.70
rawPathToStringFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…