Do you say "2 Byte" or "2 Bytes"? Which one is correct? If both is possible, when to use what?
The same question would come to my mind for my own language: German. So, there has to be a technical answer.
English Language Learners Stack Exchange is a question and answer site for speakers of other languages learning English. It only takes a minute to sign up.
Sign up to join this communityDo you say "2 Byte" or "2 Bytes"? Which one is correct? If both is possible, when to use what?
The same question would come to my mind for my own language: German. So, there has to be a technical answer.
Both are possible, although the former would normally employ a hyphen.
When used as an adjective, 2-byte refers to size of something:
The computer's memory is organized into 2-byte words.
The token is stored as a 2-byte variable.
This will need to be stored as a 2-byte character.
When used as a plural noun, the 2 is simply a quantifier. However, in this case, you might see the word spelled out (as is often the case with numerals less than 10):
Each word in memory can be broken into two bytes.
The token is stored as a variable which takes up two bytes.
We will need to store this character in two bytes; it won't fit in one.
float
s". I have to admit I usually write "32bit", not "32-bit" or "32 bit", although the usual convention for units is to leave a space. (b and B are the units for bits and bytes, respectively, but the whole word can also work as a unit, I think). I think a hyphen is perfect to associate the number with the unit more strongly when it's a countable unit (integer only).
Jun 11, 2016 at 7:37
To add to J.R.'s answer, note that in English, adjectives never change their form. Thus, any noun which is being used as an adjective cannot use its plural form. In addition, compound adjectives (multiple words functioning as a single adjective) are separated by hyphens. Compound nouns usually (but not always) are not, at least in American English.
Consider:
This is a 2-byte-long program.
.This program has size of 2 bytes.
.Note that in the compound adjective form, 1 is often omitted.
This is a 1-byte-long program.
-> This is a byte-long program.
Under most situations, the proper term should be "2 Bytes" rather than "2 Byte". The "2" here is being interpreted as a set of two units, thus requiring pluralization. See Here. This will continue for N numbers (2 bytes, 3 bytes, ... , N bytes).
However, more rarely when the system is the topic, such a "2-byte system", there is only a singular object, not requiring pluralization.
We can create a better informative answer if we switch away from bytes to some other unit. How about the foot (unit of length)?
Key sentences:
My father caught a four foot sturgeon last weekend.
Yes, it was literally four feet long.
Its length was four feet.
"Four foot sturgeon" is a compound noun phrase, the head of which is "sturgeon". The other nouns in a noun phrase which modify the head do not carry a plural marker. We can have "four foot sturgeon" but not "four feet sturgeon".
In "four feet long", the grammar is different. Here "four feet" is a complete noun phrase on its own, which modifies the adjective "long". A noun denoting a quantity can modify a dimension: "(it is) four feet long" answers the question "how many feet (is it) long?"
If we drop the plural, we change the structure: "four-foot-long" is possible, but now it's a compound adjective, because "four-foot" isn't a grammatical noun by itself. (In formal writing, we write this with the hyphens, as I have it. Another example of this pattern "three-year-old boy" and of course "ten-byte-long string".)
These quantity-indicating adjective phrases like "four-foot-long", "ten-byte-long", or "three-years-old" adjectives aren't used as complements to a noun under the verb "is":
The boy was { *three-year-old / three years old }.
*The character string is three { *byte | bytes } long.
The pond was only four { ?foot | feet } deep.
It's a curious situation in English because adjectives usually work as is-complements: we can say "blue sky" and "the sky is blue"; or "sad song" as well as "the song is sad".
This is something to watch out for.