Community Profile

photo

Zhipeng


Actif depuis 2019

Followers: 0   Following: 0

Contact

Statistiques

  • Thankful Level 2
  • Thankful Level 1

Afficher les badges

Feeds

Afficher par

Question


Why this x == g gave me logic 0?
g = 0.1; x = 0.102; x = x - 0.001; x = x - 0.001; x == g This is a simple code and I didn't know why matlab give me logic 0...

environ 5 ans il y a | 1 réponse | 0

1

réponse

Question


Can anybody help this loop question?
Temp = 20; g = 0.1; x = 0.11; while(Temp > 0 && x ~= g) Temp = Temp -1 x = x -0.001 if(x==g) print('l...

environ 5 ans il y a | 1 réponse | 0

1

réponse