Please is it possible to store 0 as 0.0(or 50 as 50.0? I have to save numeric values to json file ( using jsonencode ). I need this specific format due to dependency forward in program chain ( I cannot change the input format of the next block and it is specified that this format is needed). I've spent 4 hours browsing and trying but I am still stuck 🙁 (sprintf('%.1f',var) did not worked… Any help appreciated
MATLAB: Store 0 as 0.0
decimalplacessave
Best Answer