summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2022-10-06 12:11:41 +0200
committerJaron Kent-Dobias <jaron@kent-dobias.com>2022-10-06 12:11:41 +0200
commit4824391250150840717c1609c99ff8c234c76665 (patch)
treee64826480a98afc4764a33f836379b698af3fb21
parent1c246a15a2fce947a2d7c789f57f634d32603ee9 (diff)
downloadcode-4824391250150840717c1609c99ff8c234c76665.tar.gz
code-4824391250150840717c1609c99ff8c234c76665.tar.bz2
code-4824391250150840717c1609c99ff8c234c76665.zip
Read number of measurements as float to allow scientific notation.
-rw-r--r--order.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/order.cpp b/order.cpp
index 22e08f6..f43a2a3 100644
--- a/order.cpp
+++ b/order.cpp
@@ -16,7 +16,7 @@ int main(int argc, char* argv[]) {
n = atoi(optarg);
break;
case 'm':
- m = atoi(optarg);
+ m = (unsigned)atof(optarg);
break;
default:
exit(1);