apologies if this has been asked, but I cannot find it.
I have a double variable which I am doing ++ and — to increase and decrease the value.
My number is 95.8 for example, and the ++ would make it 96.8
But I would like the ++ operator to increment by 0.1 each time, therefore the number would increase to 95.9 for example.
Thanks,
Dan
That’s not supported unless you create your own type (class) and override these operators.
Use the following instead: