Programming MisconceptionsHomeMisconceptionsConceptsLanguagesTextbooksContributorsAbout
HomeConcepts
Number

Number

A number is a value of a numerical type.

Related concepts:  ValueType

Closest Wikipedia entry:  Number

Misconceptions about Number
15 documented Misconceptions

Any LanguageJavaJavaScriptPythonScratch
Check Yourself
Misconception
CharNotNumeric — Java
Char is not a numeric type
Misconception
IntegerDivisionToRational — Java
Dividing two integers can produce a rational number
Misconception
LargeIntegerLong — Java
Large integer numbers have type long
Misconception
NoCastIfSameSize — 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 variable
Misconception
NoFloatLiterals — Java
There are no float literals
Misconception
NoLongLiterals — Java
There are no long literals
Misconception
NumericToBooleanCoercion — Java
Numeric types can be coerced to boolean
Misconception
RationalLiterals — Java
Rational fractions are literals
Misconception
ReferenceToIntegerConversion — Java
One can cast between references and ints
Misconception
StringRepetitionOperator — Java
The multiplication operator can repeat a String a number of times
Misconception
TargetTyping — Java
The type of a numerical expression depends on the type expected by the surrounding context
Misconception
ZeroDigitsCompress — Java
In integer numbers, decimal digits with value `0` take less storage than decimal digits with other values
Misconception
StringRepetitionOperator — JavaScript
One can repeat a String by multiplying it with a number
Misconception
NoSequenceRepetition — Python
There is no operator that repeats sequences
Misconception
PlusConcatenatesNumbers — Python
The plus operator can concatenate strings and numbers

Find Misconceptions by...

Concept
Programming Language
Notional Machine
Textbook

About

About This Site
Structure and Content of the Inventory
Contributors