Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

base and radix in numeric representation #1097

Open
shirok opened this issue Jan 9, 2025 · 1 comment
Open

base and radix in numeric representation #1097

shirok opened this issue Jan 9, 2025 · 1 comment

Comments

@shirok
Copy link
Owner

shirok commented Jan 9, 2025

There's some confusion in use of these terms.

In <write-controls>, we use radix as the explicit radix prefix, and base as the base of the actual number. However, R7RS uses radix as the base. C API's argument and field names has similar confusion.

We may rename radix in <write-controls> as radix-prefix, which has little room of confusion. We want to use base consistently for N of base-N number notation, but we have to recognize R7RS uses radix for that.

@shirok
Copy link
Owner Author

shirok commented Jan 10, 2025

Now I remember. Nomenclature of base and radix came from Common Lisp.

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

No branches or pull requests

1 participant