Участник:Alexsmail/Программирование 2020/новый черновик: различия между версиями

Содержимое удалено Содержимое добавлено
стилевые правки
м →‎REPL: оформление
Строка 273:
 
Shell https://kotlinlang.org/assets/images/tutorials/command-line/kotlin_shell.png
https://ru.wikipedia.org/wiki/REPL
 
 
 
Строка 302:
NaN
>>> Math.sqrt(4)
Math.sqrt(4)error: the integer literal does not conform to the expected type Double
Math.sqrt(4)
^
>>> Math.sqrt(4.0)
2.0
>>> Math.pow(Math.sqrt(4.0), 2.0)
4.0
>>> Math.pow(Math.sqrt(Math.sqrt(Math.sqrt(Math.sqrt(Math.sqrt(Math.sqrt(Math.sqrt(Math.sqrt(4.0)))))))), 256.0)
3.999999999999903
</syntaxhighlight>
^