0

(in Matlab) when I input a number of 1s and 0s it changes the number when I use num2str and I'm not sure why.

num2str(1001001100000000000000000000000000000000000000000000, '%52.5f')

ans =

'1001001100000000002664441524911969292225850934034432.00000'
  • The question linked sounds like a different problem, but it really is the same one. Read the answer to the linked question, it will clarify why this is happening to you. – Cris Luengo Apr 06 '22 at 19:43

0 Answers0