Live data from Hacker News

A word for a value between 0 and 1 (inclusive)

english.stackexchange.com

11–20 of 325 posts

Re: A word for a value between 0 and 1 (inclusive)

#13

I'd personally go with "percent", but because there's so many correct options, it shouldn't matter as long as it's consistent in the code base. Otherwise it just becomes bike-shedding bait.

Right but it’s specifically not, and liable to make people think “3” is an acceptable input

Re: A word for a value between 0 and 1 (inclusive)

#19

I'd agree with "portion" or "part" -- describes a percentage in decimal notation, to me at least.

What about "fraction"? That's what I tend to use in my own code, although it could be greater than 1 potentially.

That's a feature, in case you need to crank the power up to 11.
Post reply on HN