MCPcopy Create free account
hub / github.com/GothenburgBitFactory/taskwarrior / sqrt

Method sqrt

src/Variant.cpp:1893–1899  ·  view source on GitHub ↗

///////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

1891
1892////////////////////////////////////////////////////////////////////////////////
1893void Variant::sqrt() {
1894 if (_type == type_string) Lexer::dequote(_string);
1895
1896 cast(type_real);
1897 if (_real < 0.0) throw std::string(STRING_VARIANT_SQRT_NEG);
1898 _real = ::sqrt(_real);
1899}
1900
1901////////////////////////////////////////////////////////////////////////////////
1902void Variant::cast(const enum type new_type) {

Callers 1

TEST_NAMEFunction · 0.80

Calls

no outgoing calls

Tested by 1

TEST_NAMEFunction · 0.64