AndrewFeeney/all-positive-integers-in-ascending-order

Discussion: should we include zero?

gtudan opened this issue · 6 comments

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!

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.

This would require a test update.

That is an excellent point @deplicator!

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 commented

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

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