Skip to content

Commit

Permalink
remove impl
Browse files Browse the repository at this point in the history
  • Loading branch information
Vadim Sadokhov committed Nov 2, 2024
1 parent 67a6200 commit 7d3e62d
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions runtime/math_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,35 +267,6 @@ Optional<string> f$random_bytes(int64_t length) noexcept {
return str;
}

mixed f$abs(const mixed &v) {
mixed num = v.to_numeric();
if (num.is_int()) {
return std::abs(num.to_int());
}
return fabs(num.to_float());
}

int64_t f$abs(int64_t v) {
return std::abs(v);
}

double f$abs(double v) {
return std::abs(v);
}

int64_t f$abs(const Optional<int64_t> &v) {
return f$abs(val(v));
}

int64_t f$abs(const Optional<bool> &v) {
return f$abs(static_cast<int64_t>(val(v)));
}

double f$abs(const Optional<double> &v) {
return f$abs(val(v));
}



string f$base_convert(const string &number, int64_t frombase, int64_t tobase) {
if (frombase < 2 || frombase > 36) {
Expand Down

0 comments on commit 7d3e62d

Please sign in to comment.