Skip to content
Snippets Groups Projects
Commit e206d511 authored by Charlotte Bond's avatar Charlotte Bond
Browse files

value is printed to accuracy of 10 sig figs

parent 622ab4f0
No related branches found
No related tags found
No related merge requests found
...@@ -46,7 +46,8 @@ function [outstring] = FT_replace_value_in_line(instring, position, value) ...@@ -46,7 +46,8 @@ function [outstring] = FT_replace_value_in_line(instring, position, value)
if (isstr(value)) if (isstr(value))
str2=value; str2=value;
else else
str2=num2str(value); precision = 9+floor(log10(value+1));
str2=num2str(value,precision);
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment