summaryrefslogtreecommitdiffstats
path: root/Help/guide/tutorial/Step10/tutorial.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Help/guide/tutorial/Step10/tutorial.cxx')
-rw-r--r--Help/guide/tutorial/Step10/tutorial.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Help/guide/tutorial/Step10/tutorial.cxx b/Help/guide/tutorial/Step10/tutorial.cxx
index 42eaab9..37a0333 100644
--- a/Help/guide/tutorial/Step10/tutorial.cxx
+++ b/Help/guide/tutorial/Step10/tutorial.cxx
@@ -16,7 +16,8 @@ int main(int argc, char* argv[])
return 1;
}
- double inputValue = std::stod(argv[1]);
+ // convert input to double
+ const double inputValue = std::stod(argv[1]);
const double outputValue = mathfunctions::sqrt(inputValue);