Possible duplicate:
C ++ Comma Operator
which is probably a trivial question, but I donβt know the answer. And it bothered me this afternoon.
I just wrote a function to convert RVB to YUV. Nothing special, but mistakenly used a comma (,) instead of a period in my numbers.
It compiles, but the result was not what I expected, for example, "-3713796" instead of the range number 0-255.
(0,615*(double) 61) - (0,51498*(double) 61) - (0,10001*(double) 61)
So what does that mean?
If this is not a compilation error, it is probably useful for something, but what?
Ps: I used C ++ with Qt.
source share