From b479c97ca6b0c12b0d2eafbf6865e61815cf4bb8 Mon Sep 17 00:00:00 2001 From: LegendaryGuard Date: Wed, 21 Dec 2022 17:35:20 +0100 Subject: [PATCH] Fix #2783 (natural/napierian logarithm) --- qcsrc/common/command/rpn.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/common/command/rpn.qc b/qcsrc/common/command/rpn.qc index 7c944aa0f..01e7c515f 100644 --- a/qcsrc/common/command/rpn.qc +++ b/qcsrc/common/command/rpn.qc @@ -213,7 +213,7 @@ void GenericCommand_rpn(int request, int argc, string command) } else if(rpncmd == "exp") { rpn_setf(exp(rpn_getf())); } else if(rpncmd == "log") { - rpn_setf(exp(rpn_getf())); + rpn_setf(log(rpn_getf())); } else if(rpncmd == "sin") { rpn_setf(sin(rpn_getf())); } else if(rpncmd == "cos") { -- 2.39.2