ClickHouse/dbms/Functions/pi.cpp
Ivan 97f2a2213e
Move all folders inside /dbms one level up (#9974)
* Move some code outside dbms/src folder
* Fix paths
2020-04-02 02:51:21 +03:00

21 lines
434 B
C++

#include <Functions/FunctionFactory.h>
#include <Functions/FunctionMathConstFloat64.h>
namespace DB
{
struct PiImpl
{
static constexpr auto name = "pi";
static constexpr double value = 3.1415926535897932384626433832795028841971693;
};
using FunctionPi = FunctionMathConstFloat64<PiImpl>;
void registerFunctionPi(FunctionFactory & factory)
{
factory.registerFunction<FunctionPi>(FunctionFactory::CaseInsensitive);
}
}