public
Last active

  • Download Gist
CalculatorController.groovy
Groovy
1 2 3 4 5 6
def divide(firstNumber, secondNumber) {
if(secondNumber != 0)
firstNumber / secondNumber
else
'Infinite'
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.