MATLAB 'csvread' fails to read certain float values due to rounding issues in R2023b
I'm having a hard time understanding I'm dealing with I'm following best practices but I've searched everywhere and can't find a clear answer... I've searched everywhere and can't find a clear answer. I'm facing an issue with MATLAB's `csvread` function where it doesn't seem to accurately interpret certain float values from my CSV file... The file contains a mix of integers and floats, but some floats are getting rounded off to the nearest integer. For instance, in my CSV, I have the value `3.14159` but when I read it into MATLAB, it comes out as `3`. I'm using MATLAB R2023b and I've tried the following code to load my data: ```matlab data = csvread('mydata.csv'); ``` This should ideally preserve all the decimal places, but it seems to truncate them instead. I also experimented with `readtable` because I thought it might handle the parsing better: ```matlab dataTable = readtable('mydata.csv'); ``` However, the same issue persists, and I still see `3` instead of `3.14159`. I checked the CSV file itself, and the formatting appears fine. I even tried changing the delimiter from commas to tabs, but that didn’t help either. Could this be a version-specific bug, or am I missing some configuration? Any suggestions on how to handle this so that I can accurately retrieve float values without losing precision? I'm considering switching to a different reading function if necessary, but I would prefer to resolve this issue with `csvread` or `readtable` if possible. My development environment is Windows. This is part of a larger CLI tool I'm building. Any help would be greatly appreciated! This is part of a larger API I'm building. Any ideas how to fix this? How would you solve this? I'm working with Matlab in a Docker container on Windows 11. Is there a better approach?