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

Method Shift

tidbparser/dependency/types/mydecimal.go:435–591  ·  view source on GitHub ↗

Shift shifts decimal digits in given number (with rounding if it need), shift > 0 means shift to left shift, shift < 0 means right shift. In fact it is multiplying on 10^shift. RETURN eDecOK OK eDecOverflow operation lead to overflow, number is untoched eDecTruncated number was rounde

(shift int)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

FromStringMethod · 0.95

Calls 5

digitBoundsMethod · 0.95
RoundMethod · 0.95
doMiniLeftShiftMethod · 0.95
doMiniRightShiftMethod · 0.95
digitsToWordsFunction · 0.85

Tested by

no test coverage detected