Why when i convert Cell2mat than to double the values changes ?
이전 댓글 표시
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 !!
답변 (1개)
카테고리
도움말 센터 및 File Exchange에서 Data Type Conversion에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!