MCPcopy Create free account
hub / github.com/catboost/catboost / ToDouble

Method ToDouble

library/cpp/expression/expression_variable.cpp:330–339  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328}
329
330double TExpressionVariable::ToDouble() const {
331 if (HasDoubleValue) {
332 return DoubleValue;
333 }
334 if (HasStrValue && TryFromString<double>(StringValue, DoubleValue)) {
335 HasDoubleValue = true;
336 return DoubleValue;
337 }
338 return double();
339}
340
341TString TExpressionVariable::ToStr() const {
342 if (HasStrValue) {

Callers 15

MinMethod · 0.45
MaxMethod · 0.45
HistogramPercentileMethod · 0.45
CondMethod · 0.45
LeMethod · 0.45
LMethod · 0.45
GeMethod · 0.45
GMethod · 0.45
BitsOrMethod · 0.45
BitsAndMethod · 0.45
AddMethod · 0.45
SubMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected