How to count variable float with Ir Remote

i need help with this bcz i need every time (makeblock) ir remote key pressed it adds 10 to variable
but the code wont work here it is

pwm.setPWM(5, 0, pulseWidth(Angle));
  Angle =+ 10;
  if(Angle == 70.000000){
      Angle = 0;

Your code won’t work because it won’t compile.
It is incomplete.

@besoxsr, What made you think that your question has anything to do with the Website and Forum section which is clearly stated to be for “Improvements for the web system, applications to moderator, spam, etc.”? I have suggested to the Moderator to move it to the Programming section.

This sort of carelessness makes unnecessary work for the Moderators.


  if(Angle == 70.000000){

'float' values are encoded in binary and can't hold every possible value. Perhaps adding 10.0000 to 60.0000 will get you 69.999... which is not exactly equal to 70.000000. You would typically either use integers or compare for ">=" instead of "==".