SpellRight

SpellRight › Spelling

Rare

magic number

The correct spelling is magic number.

How to pronounce magic number

noun

Say it like: Maj-ic -num-ber

The correct spelling is magic number. The number of neutrons or protons in nuclei which are required to fill the major quantum shells, and thus produce exceptionally stable nuclei: 2, 8, 20, 28, 50, 82 and 126. For example: "We replaced the magic number 31 with a constant called MAX_DAYS_IN_MONTH."

Usage Examples

We replaced the magic number 31 with a constant called MAX_DAYS_IN_MONTH.

Definition

noun

  1. 1.The number of neutrons or protons in nuclei which are required to fill the major quantum shells, and thus produce exceptionally stable nuclei: 2, 8, 20, 28, 50, 82 and 126.
  2. 2.A metric used to determine a team's required performance to make the playoffs.
  3. 3.A number which is manually entered into source code, rather than defined somewhere as a named constant; especially one which is arbitrary or lacks explanation.
  4. 4.A number which cannot occur in normal use, typically used as a placeholder (e.g. a fictitious date such as 2000-02-32).
  5. 5.A hash code, such as those used by some webmail servers to keep track of sessions.

Similar words

Words related in meaning — check their spelling too.

View synonyms & usage examples