I am comming from C# and started checking swift for iOS and got the following issue...
I just want to convert pence amount to pounds and finding problem with integer division in swift. Following is the error I am getting.
What I can't understand is, it works ok in line 38 way but the same erroring in line 40 when using variable.
Edits
decVal1 = 23.4 which is correct. Why decVal2 can't have the same?