https://kotlinlang.org logo
h

hallvard

10/29/2017, 6:11 PM
This gives me a division by zero warning in AS:
Copy code
if (totalLengthInSeconds > 0) {
progressInPercent = currentProgressInSeconds * 100 / totalLengthInSeconds
}
Couldn't this situation be caught by the in other cases very perspicacious compiler?