Why 0.6+0.3+0.1-1 is -1.11022302462516e-16, not 0 ? why?? A serials bug??

6 vues (au cours des 30 derniers jours)
denny
denny le 20 Juin 2018
Commenté : denny le 9 Sep 2019
0.6+0.3+0.1-1
  1 commentaire
denny
denny le 9 Sep 2019
This is not a bug, this is bucase the numeric calculation in a computer.
You can use a fraction to calculate it.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur MATLAB 快速入门 dans Help Center et File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!