MCPcopy Create free account
hub / github.com/FastFlowLM/FastFlowLM / operator-

Method operator-

src/include/minja/minja.hpp:458–463  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

456 }
457
458 Value operator-() const {
459 if (is_number_integer())
460 return -get<int64_t>();
461 else
462 return -get<double>();
463 }
464 std::string to_str() const {
465 if (is_string()) return get<std::string>();
466 if (is_number_integer()) return std::to_string(get<int64_t>());

Callers

nothing calls this directly

Calls 2

is_number_integerFunction · 0.85
is_number_integerMethod · 0.80

Tested by

no test coverage detected