colobot-data/help/cbot/R/nan.txt

17 lines
773 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

\b;Тип \c;nan\n;
Это особое значение показывает, что \l;переменная\u cbot\var; типа \c;\l;int\u cbot\int;\n; или \c;\l;float\u cbot\float;\n; не содержит число, она не содержит "ничего".
Например если инструкция \c;\l;receive\u cbot\receive;\n; не может получить запрашиваемую информацию, то она возвращает \c;nan\n; :
\c;
\s; value = receive("Length");
\s; if ( value == nan ) // не найдена ?
\s; {
\s;
\s; }
\n;
\t;Словарь
\c;nan\n; = Не число
\t;Смотри также
\l;Программирование\u cbot;, \l;типы\u cbot\type; и \l;категории\u cbot\category;.