Well, if the values are of a floating point type, then yeah, there would be a problem with those expressions since they won't be using integer division. But if they are of an integer type, then there...
Type: Posts; User: laserlight
Well, if the values are of a floating point type, then yeah, there would be a problem with those expressions since they won't be using integer division. But if they are of an integer type, then there...
Looking at the pattern, I'd say that for m[i][j][k] with value n:
i = (n - 1) / 9
j = ((n - 1) / 3) % 3
k = (n - 1) % 3