Участник:Alexsmail/Программирование 2020/новый черновик: различия между версиями
Содержимое удалено Содержимое добавлено
Alexsmail (обсуждение | вклад) →Компиляция и запуск: IDE reference added |
Alexsmail (обсуждение | вклад) мНет описания правки |
||
Строка 4:
1.2. Примитивные переменные JVM. Зачем нужны типы переменных. Типы переменных.
boolean
int (с двумя нулями или с одним непарным значением), long (BigInteger), double (floating point arithmetic, alternative BigDecimal)
short, byte, char (ASCII table)
N<-> no type, see next
Z<-> int/long/BigInteger
Q<-> no type (we will define own), see next
R<->float, double
String (StringBuilder) .
https://kotlinlang.org/docs/reference/basic-types.html
IEEE 754 Standard for Floating-Point Arithmetic. https://ru.wikipedia.org/wiki/IEEE_754-2008
http://www.unicode.org/glossary/#high_surrogate_code_unitz
However, to support generic use cases and provide total ordering, when the operands are not statically typed as floating point numbers (e.g. Any, Comparable<...>, a type parameter), the operations use the equals and compareTo implementations for Float and Double, which disagree with the standard, so that:
NaN is considered equal to itself
NaN is considered greater than any other element including POSITIVE_INFINITY
-0.0 is considered less than 0.0
1.3. Массивы (Матрица, кинозал). Двухмерные массивы. Многомерные массивы. Динамическое определение массивов на примере треугольника.
|