Skip to content

Commit fe2e26f

Browse files
fixed LGTM
1 parent fdbbb9a commit fe2e26f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/main/java/com/examplehub/maths/NarcissisticNumber.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public static boolean isNarcissisticNumber(int number) {
1616
int copy = number;
1717
int digits = CountDigits.countDigits(number);
1818
while (number != 0) {
19-
sum += Math.pow(number % 10, digits);
19+
sum += (int) Math.pow(number % 10, digits);
2020
number /= 10;
2121
}
2222
return copy == sum;

0 commit comments

Comments
 (0)