Skip to content

Commit

Permalink
csv precision change
Browse files Browse the repository at this point in the history
Saving min / max string resistance with enough precision in .csv file to avoid exponential format in Excel.
  • Loading branch information
slugrustle committed Apr 1, 2018
1 parent 61fdf49 commit 6bf2aa4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Ben Tesch - [slugrustle](https://github.com/slugrustle)
## License

voltage\_divider.html contains the function download_csv()
which comes from [this Stack Overflow post](https://stackoverflow.com/a/33542499)
which is modified from [this Stack Overflow post](https://stackoverflow.com/a/33542499)
and is therefore distributed under the
[CC BY-SA 3.0 license](https://creativecommons.org/licenses/by-sa/3.0/).

Expand Down
4 changes: 2 additions & 2 deletions voltage_divider.html
Original file line number Diff line number Diff line change
Expand Up @@ -1038,8 +1038,8 @@
}

csvString += settings.resTolerance.toString() + "%,";
csvString += settings.minStringRes.toPrecision(7) + ",";
csvString += settings.maxStringRes.toPrecision(7) + ",";
csvString += settings.minStringRes.toPrecision(9) + ",";
csvString += settings.maxStringRes.toPrecision(9) + ",";

switch (settings.resSeries) {
case seriesEnum.E24:
Expand Down

0 comments on commit 6bf2aa4

Please sign in to comment.