Percentage | Lines | ||
---|---|---|---|
RoundAwayFromZero |
|
100 % | 9 |
RoundDown |
|
100 % | 9 |
RoundHalfAwayFromZero |
|
100 % | 11 |
RoundHalfDown |
|
100 % | 11 |
RoundHalfToEven |
|
100 % | 17 |
RoundHalfToOdd |
|
100 % | 17 |
RoundHalfTowardsZero |
|
100 % | 11 |
RoundHalfUp |
|
100 % | 11 |
RoundTowardsZero |
|
100 % | 9 |
RoundUp |
|
100 % | 9 |
CRAP Score | Lines | ||
---|---|---|---|
Amount::castToString() | 5 | 18 | |
Amount::createFromNumber() | 4 | 17 | |
Amount::allocate() | 4 | 21 | |
Toolkit::roundToNearest() | 4 | 15 | |
Amount::createFromSignalString() | 3 | 18 | |
Amount::roundTo() | 3 | 9 | |
Toolkit::roundAwayFromZero() | 3 | 12 | |
Toolkit::roundUp() | 3 | 16 | |
Toolkit::roundDown() | 3 | 16 | |
Amount::divideBy() | 3 | 16 | |