I want to achieve following result in iOS Swift 3 as per screenshot of googling. PFA below
I try in iOS Swift 3 but stuck when doing this, see the code
let resultAfterModulo: Int = (-3) % 24
print(resultAfterModulo)
output: -3
but output should be 21
Could anyone help me in this..?? Thanks in advance....