実際にどう使われますか?
下の例文を通して、それぞれの単語がどのような状況で使われるのか学んでみましょう!
number
例文
The number of students in the class is 25. [number: noun]
クラスの生徒数は25人です。[番号: 名詞]
例文
I need your phone number to call you later. [number: noun]
後で電話をかけるにはあなたの電話番号が必要です。[番号: 名詞]
例文
There are a number of reasons why I can't come to the party. [number: pronoun]
パーティーに来られない理由はいくつかあります。[番号:代名詞]
integer
例文
The solution to the equation is an integer. [integer: noun]
方程式の解は整数です。[整数: 名詞]
例文
In programming, you can use an integer variable to store whole numbers. [integer: adjective]
プログラミングでは、整数変数を使用して整数を格納できます。[整数:形容詞]
例文
An integer is a positive or negative whole number. [integer: noun]
整数は、正または負の整数です。[整数: 名詞]
追加で知っておくといいこと
どっちの方がよく使われますか?
Numberは日常の言語でより一般的な単語ですが、integerはより具体的で技術的であり、数学やプログラミングのコンテキストでよく使用されます。
どっちの方がよりフォーマルですか?
Integerはnumberよりも正式な単語であり、技術的または学術的な文脈でよく使用されますが、numberは公式と非公式の両方の文脈で使用できます。