(result *BigInt, neg bool, half int)
| 183 | } |
| 184 | |
| 185 | func roundHalfEven(result *BigInt, neg bool, half int) bool { |
| 186 | if half > 0 { |
| 187 | return true |
| 188 | } |
| 189 | if half < 0 { |
| 190 | return false |
| 191 | } |
| 192 | return result.Bit(0) == 1 |
| 193 | } |
| 194 | |
| 195 | func roundHalfDown(result *BigInt, neg bool, half int) bool { |
| 196 | return half > 0 |
no test coverage detected
searching dependent graphs…