answersLogoWhite

0

In computer programming, a number without a variable is referred to as a "magic number," because it seems to appear out of nowhere (like magic!). This is typically considered a bad thing, as that number will have no implicit meaning.

{

diameter = 10;

area = 3.14 * diameter; // here 3.14 is a magic number

}

{

pi = 3.14

diameter = 10;

area = pi * diameter; // now the meaning of this statement is unambiguous

}

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

What is the independent variable of a variable?

Just the number, for example: 7x the variable is 7. The variable is the number without the variable(x,y,z, etc.)


A single number without a variable?

Magic number


What is a number without a variable in a equation?

a constant


What is the number called that is without a variable?

A constant.


A number without a variable or a number by itself is called a.?

Constant? not positive


How do you represent a monomial with a degree of 0?

That would be a pure number, without a variable.


Can you add or subtract a number with a variable and a number without one?

Yes, you can add or subtract a number with a variable and a number without one, but they cannot be combined into a single term. For example, you can simplify the expression (3x + 5) to show that it consists of a variable term (3x) and a constant term (5), but they remain separate. The result is (3x + 5), not a single term.


What is the degree for a number without a variable?

anything without a variable is to the first power. To find the degree, you look at what the power of the number is and that will be the degree. The degree is the number of times your coefficient is a factor. Since the exponent is one, so is the degree. Ex. 2x squared = 2nd degree


Can you multiply a number with a variable and a number without one?

yes you can so like 3x*5 would =15x


What is a variable minus a number and variable?

a variable minus a number and the same variable is b-6b= -5b


What is the definition of constant used in math?

A number without a variable. Ex.) 5 is a constant, 5x is not.


What number is the coefficient number?

the number next to a variable that multiplies the variable