MCPcopy Create free account
hub / github.com/dolthub/doltgresql / round

Method round

postgres/parser/duration/duration.go:151–154  ·  view source on GitHub ↗

round rounds nanos to the nearest microsecond.

()

Source from the content-addressed store, hash-verified

149
150// round rounds nanos to the nearest microsecond.
151func (d Duration) round() Duration {
152 d.nanos = rounded(d.nanos)
153 return d
154}
155
156// rounded returns nanos rounded to the nearest microsecond.
157func (d Duration) rounded() int64 {

Callers 2

FromFloat64Function · 0.80
FromBigIntFunction · 0.80

Calls 1

roundedFunction · 0.85

Tested by

no test coverage detected