# Number

A number is a value of a numerical type.

*Closest Wikipedia entry:* Number — A number is a mathematical object used to count, measure, and label. The original examples are the natural numbers 1, 2, 3, 4, and so forth. Numbers can be represented in language with number words.

## Misconceptions about Number15 documented Misconceptions

Check YourselfCharNotNumeric — Java

Char is not a numeric typeIntegerDivisionToRational — Java

Dividing two integers can produce a rational numberLargeIntegerLong — Java

Large integer numbers have type longNoCastIfSameSize — Java

If a variable is at least as big (bit-width) as a value, then no cast is needed to a assign the value to the variableNoFloatLiterals — Java

There are no float literalsNoLongLiterals — Java

There are no long literalsNoSequenceRepetition — Python

There is no operator that repeats sequencesNumericToBooleanCoercion — Java

Numeric types can be coerced to booleanPlusConcatenatesNumbers — Python

The plus operator can concatenate strings and numbersRationalLiterals — Java

Rational fractions are literalsReferenceToIntegerConversion — Java

One can cast between references and intsStringRepetitionOperator — Java

The multiplication operator can repeat a String a number of timesStringRepetitionOperator — JavaScript

One can repeat a String by multiplying it with a numberTargetTyping — Java

The type of a numerical expression depends on the type expected by the surrounding contextZeroDigitsCompress — Java

In integer numbers, decimal digits with value `0` take less storage than decimal digits with other values