MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / MaxNumber

Function MaxNumber

extensions/math_ext.cc:128–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128CelNumber MaxNumber(CelNumber v1, CelNumber v2) {
129 if (v2 > v1) {
130 return v2;
131 }
132 return v1;
133}
134
135Value MaxValue(CelNumber v1, CelNumber v2) {
136 return NumberToValue(MaxNumber(v1, v2));

Callers 2

MaxValueFunction · 0.85
MaxListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected