There are four types of numeric literals: plain integers, long integers, floating point numbers, and imaginary numbers. There are no complex literals (complex numbers can be formed by adding a real number and an imaginary number).
存在有四种类型的数值型的字面值:普通整数,长整数, 浮点数和虚数.没有复数字面值(复数可以以一个实数加上一个虚数的形式给出)
Note that numeric literals do not include a sign; a phrase like
-1
is actually an expression composed of the unary operator
`-
' and the literal 1
.
注意数值型的字面值不包括符号(译注:正负号), 像-1实际上是个组合了一元运算符"-"和字面值1的表达式.