Zero in Programming

Comments revolve around the number zero's properties, usage, and implications in programming and math, including debates on allowing zero values, division by zero, zero vs. non-zero, and starting at zero versus one.

📉 Falling 0.5x Programming Languages
4,564
Comments
20
Years Active
5
Top Authors
#7670
Topic ID

Activity Over Time

2007
4
2008
23
2009
63
2010
89
2011
123
2012
111
2013
182
2014
190
2015
162
2016
198
2017
187
2018
332
2019
293
2020
347
2021
366
2022
495
2023
473
2024
471
2025
438
2026
17

Keywords

WHY CSS NULL zero repeated multiplication non zero shed values null mathematics counting value

Sample Comments

klyrs Apr 13, 2024 View on HN

For whatever it's worth, zero gets you absolutely nowhere; there's no harm in allowing it.

Sebguer Aug 29, 2020 View on HN

I think you meant 'zero' not nonzero?

gcbw2 Dec 22, 2018 View on HN

Maybe they just meant larger values of zero.

photon_off Sep 18, 2010 View on HN

In case you're really wondering, it's zero.

navaati Feb 6, 2019 View on HN

Zero, that's the point ;) !

eviks May 4, 2024 View on HN

That's why it has 0 in its name!

matheweis Apr 17, 2017 View on HN

Thanks - but which one is the zero?

soperj Sep 14, 2020 View on HN

they haven't, that's the point, and why I had the zero in quotes.

underyx Jul 23, 2015 View on HN

Well, what has a value of zero?

7373737373 Jan 11, 2017 View on HN

What happens if you allow for 0?