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

Function TruncateFloat

tidbparser/dependency/types/helper.go:71–93  ·  view source on GitHub ↗

TruncateFloat tries to truncate f. If the result exceeds the max/min float that flen/decimal allowed, returns the max/min float allowed.

(f float64, flen int, decimal int)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

Calls 3

getMaxFloatFunction · 0.85
RoundFunction · 0.85
GenByArgsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…