X++ increment by value other than 1?

is there a way to use the ++ operator to increment a value by a number other than 1 or do i have to use x = x + 0.2;

x += 0.2;

Thank you!

1 Like

which is basically the exact same thing as you wrote

of course, if x is not a floating point variable but an integer, then it won't do much.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.