(digit byte, seenNonZero *bool, significantDigits *int64)
| 961 | } |
| 962 | |
| 963 | func countCompatibleDigit(digit byte, seenNonZero *bool, significantDigits *int64) { |
| 964 | if digit != '0' || *seenNonZero { |
| 965 | *seenNonZero = true |
| 966 | (*significantDigits)++ |
| 967 | } |
| 968 | } |
| 969 | |
| 970 | func compatibleDecimalShape(significantDigits int64, scale int64) bool { |
| 971 | if scale > maxCompatibleDecimalDigits { |
no outgoing calls
no test coverage detected