The Stack Overflow podcast is back! Listen to an interview with our new CEO.

New answers tagged

7

Both of your example sentences are grammatically correct, but they mean subtly different things. "One would call such a value a constant" means that "a constant" is another name for a value with the characteristics referred to by "such". "One would call such a value constant" means that "constant" is an adjective describing the quality possessed by values ...


5

A constant is correct. In programming and mathematics, a constant is a kind of value that is characterized by being unchanging, as opposed to a variable, which is used as a placeholder for a variety of values. To use a mathematical example, the generic equation of a line is y=ax+b. a and b are both constants, because for every specific line, they remain the ...


Top 50 recent answers are included