///////////////////////////////////////////////////////////////////////////
| 1891 | |
| 1892 | //////////////////////////////////////////////////////////////////////////////// |
| 1893 | void 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 | //////////////////////////////////////////////////////////////////////////////// |
| 1902 | void Variant::cast(const enum type new_type) { |