summaryrefslogtreecommitdiff
path: root/Help/guide/tutorial/Consumer/consumer.cxx
blob: ae7877b5ab34ae019c6de43547b447c696ba8699 (plain)
1
2
3
4
5
6
7
8
9
10
11
// A simple function that computes the square root of a number
#include <iostream>
#include <sstream>
#include <string>

#include "MathFunctions.h"

double string_square_root(std::string const& value)
{
  return mathfunctions::sqrt(std::stod(value));
}