Skip to content

feat: add log2 builtin - #981

Merged
antonmedv merged 1 commit into
expr-lang:masterfrom
sanmaxdev:feat/log2-builtin
Nov 21, 2026
Merged

antonmedv merged 1 commit into
expr-lang:masterfrom
sanmaxdev:feat/log2-builtin

Conversation

@sanmaxdev

Copy link
Copy Markdown
Contributor

Summary

  • add a log2 number function backed by Go's standard math behavior
  • validate numeric arguments and document the new function
  • cover integer, fractional, and invalid inputs

Testing

  • go test ./builtin -run 'TestBuiltin$|TestBuiltin_errors$'
  • go test ./...
  • go vet ./...
  • GOARCH=386 go build
  • git diff --check

Closes #953

@antonmedv
antonmedv merged commit d922853 into expr-lang:master Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

log2 builtin

2 participants