diff --git a/savejson.m b/savejson.m index 2b6a0d5..7be8352 100644 --- a/savejson.m +++ b/savejson.m @@ -23,7 +23,7 @@ % opt can have the following fields (first in [.|.] is the default) % % FileName [''|string]: a file name to save the output JSON data -% FloatFormat ['%.10g'|string]: format to show each numeric element +% FloatFormat ['%.16g'|string]: format to show each numeric element % of a 1D/2D array; % IntFormat ['%.0f'|string]: format to display integer elements % of a 1D/2D array; @@ -152,7 +152,7 @@ opt.compressarraysize=jsonopt('CompressArraySize',100,opt); opt.compressstringsize=jsonopt('CompressStringSize',opt.compressarraysize*4,opt); opt.intformat=jsonopt('IntFormat','%.0f',opt); -opt.floatformat=jsonopt('FloatFormat','%.10g',opt); +opt.floatformat=jsonopt('FloatFormat','%.16g',opt); opt.unpackhex=jsonopt('UnpackHex',1,opt); opt.arraytostruct=jsonopt('ArrayToStruct',0,opt); opt.parselogical=jsonopt('ParseLogical',0,opt);