MCPcopy Create free account
hub / github.com/blastrain/vitess-sqlparser / RoundFrac

Function RoundFrac

tidbparser/dependency/types/time.go:383–389  ·  view source on GitHub ↗

RoundFrac rounds fractional seconds precision with new fsp and returns a new one. We will use the “round half up” rule, e.g, >= 0.5 -> 1, < 0.5 -> 0, so 2011:11:11 10:10:10.888888 round 0 -> 2011:11:11 10:10:11 and 2011:11:11 10:10:10.111111 round 0 -> 2011:11:11 10:10:10

(t gotime.Time, fsp int)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 2

CheckFspFunction · 0.85
RoundMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…