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

Discussion: should we include zero? #18

Open
gtudan opened this issue Feb 20, 2023 · 6 comments
Open

Discussion: should we include zero? #18

gtudan opened this issue Feb 20, 2023 · 6 comments

Comments

@gtudan
Copy link

gtudan commented Feb 20, 2023

It is debatable if zero is a positive integer or not (example). It probably depends on the context, so maybe we different versions of numbers.txt?

I would like to use numbers.txt to iterate through my lists (starting with index zero), so this would really help!

@AndrewFeeney
Copy link
Owner

This is a very important question, and I'm not sure I can see an easy answer. I'd like to open this up to further discussion before proceeding.

@deplicator
Copy link
Contributor

This would require a test update.

@AndrewFeeney
Copy link
Owner

That is an excellent point @deplicator!

@AndrewFeeney
Copy link
Owner

To get a feel for the mood out there on this issue, I have posted this poll on the fediverse: https://phpc.social/@andrewfeeney/109938989159254475

@kikito
Copy link

kikito commented Sep 13, 2023

A reasonable compromise would be to include +0 but not -0 (which is represented differently in IEEE 754)

@AndrewFeeney
Copy link
Owner

@kikito You're the first to bring actual standards to the discussion and now you're blowing this wide open again. 🤯

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

4 participants