NUMBER: различия между версиями
Перейти к навигации
Перейти к поиску
AtH (обсуждение | вклад) Нет описания правки |
AtH (обсуждение | вклад) Нет описания правки |
||
Строка 18: | Строка 18: | ||
is not possible, an error condition exists. The string may | is not possible, an error condition exists. The string may | ||
contain a preceding negative sign. | contain a preceding negative sign. | ||
== NUMBER в fig-FORTH Release 1 glossary, май 1979 (англ.) == | |||
NUMBER addr --- d | |||
Convert a character string left at addr with a preceeding count, to | |||
a signed .double number, using the current numeric base. If a | |||
decimal point is encountered in the text, its position will be | |||
given in DPL, but no other effect occurs. If numeric conversion is | |||
not possible, an error message will be given. | |||
Версия от 21:39, 7 сентября 2015
NUMBER — стандартное слово Каллисто.
Преобразует в число последовательность символов, начиная с a+1 с учётом BASE.
NUMBER в предыдущем стандарте Forth-83 (англ.)
NUMBER addr -- d Convert the count and character string at addr, to a signed 32-bit integer, using the value of BASE . If numeric conversion is not possible, an error condition exists. The string may contain a preceding minus sign.
NUMBER в стандарте Forth-79 (англ.)
NUMBER addr -- n Convert the count and character string at addr, to a signed 32-bit integer, using the current base. If numeric conversion is not possible, an error condition exists. The string may contain a preceding negative sign.
NUMBER в fig-FORTH Release 1 glossary, май 1979 (англ.)
NUMBER addr --- d Convert a character string left at addr with a preceeding count, to a signed .double number, using the current numeric base. If a decimal point is encountered in the text, its position will be given in DPL, but no other effect occurs. If numeric conversion is not possible, an error message will be given.
У этой статьи нет иллюстраций. Вы можете помочь проекту, добавив их. |
Это заготовка статьи. Вы можете помочь проекту, дополнив её. |