Why when i convert Cell2mat than to double the values changes ?
Afficher commentaires plus anciens
i am having this cell array
% bsh=busdata(:,17);
bsh={'Shunt susceptance B'
0
0
0
0
0
0
0
0
0.1900000
0
0
0
0
0}
I am converting to mat with
bsh=cell2mat(bsh(2:nbus+1)); % nbus=14 to exclude first cell
and if i want to convert to double with
bsh= double(bsh);
in the 0.19000 value i get 0.189999997615814
how is this possible?
Thanks a lot !!
Réponses (1)
Catégories
En savoir plus sur Data Type Conversion dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!