MCPcopy Create free account
hub / github.com/OCEChain/OCEChain / chopPrecisionAndRound

Function chopPrecisionAndRound

types/decimal.go:299–330  ·  view source on GitHub ↗

____ __| |__ "chop 'em ` \ round!" ___|| ~ _ -bankers | | __ | | | __|__|__ |_____: / | $$$ | |________| nolint - go-cyclo Remove a Precision amount of rightmost digits and perform bankers rounding on the remainder (gaussian rounding) on the digits which hav

(d *big.Int)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

MulMethod · 0.85
QuoMethod · 0.85

Calls 4

SignMethod · 0.95
SignMethod · 0.65
NegMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected