fix ln and remove unused code

This commit is contained in:
2023-03-11 12:37:02 +00:00
parent 42de489ca5
commit 3a449dec63
8 changed files with 69 additions and 127 deletions

View File

@@ -24,7 +24,7 @@ func Ln(x number) number {
}
func ArgonLn(a ...any) (any, ArErr) {
if len(a) != 0 {
if len(a) != 1 {
return nil, ArErr{TYPE: "Runtime Error", message: "ln takes 1 argument, got " + fmt.Sprint(len(a)),
EXISTS: true}
}