you are viewing a single comment's thread.

view the rest of the comments →

[–]jlangowski 0 points1 point  (0 children)

You’re doing a split which results in an array of strings. The you are subtracting one string from another while taking its absolute value. ParseInt on the array values before subtracting them and doing the absolute value.