Definify.com
Definition 2024
magic_number
magic number
English
Noun
magic number (plural magic numbers)
- (physics) 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 & 126
- (baseball) A metric used to determine a team's required performance to make the playoffs.
- The sum of one and the wins by one team and losses by an opponent necessary for the team to ensure the opponent cannot catch it in the standings by the end of the regular season. In Major League Baseball, with a regular season of 162 games, the magic number M is calculated as M = 163 - W1 - L2, in which W1 is the leading team's current win total, and L2 is the opponent's current loss total. A magic number of 0 indicates that the trailing team cannot catch the leading team.
- By extension, the lowest such number that assures a team a playoff berth.
- (computing)
- 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.
- We replaced the magic number 31 with a constant called MAX_DAYS_IN_MONTH.
- a number which cannot occur in normal use, typically used as a placeholder (e.g. a fictitious date such as 2000-02-32).
- a hash code, such as those used by some webmail servers to keep track of sessions.
- a number in a file’s content that identifies the filetype
- 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.