デフォルトでは、 Forth の数値は 1 セルのサイズの1倍長整数です。 扱い方に応じて、 符号付きまたは符号無しにすることができます。 1倍長整数を認識するためにテキスト・インタープリターで使用されるルールについては、 Number Conversion を参照してください。
これらのワードは、 すべて符号付きオペランドに対して定義されていますが、 一部のワードは符号無しの数値に対しても機能します: +
,
1+
, -
, 1-
, *
+
( n1 n2 – n ) core “plus”
1+
( n1 – n2 ) core “one-plus”
under+
( n1 n2 n3 – n n2 ) gforth-0.3 “under-plus”
n3 を n1 に足し込む(n を得る)
-
( n1 n2 – n ) core “minus”
1-
( n1 – n2 ) core “one-minus”
*
( n1 n2 – n ) core “star”
negate
( n1 – n2 ) core “negate”
abs
( n – u ) core “abs”
min
( n1 n2 – n ) core “min”
max
( n1 n2 – n ) core “max”
umin
( u1 u2 – u ) gforth-0.5 “umin”
umax
( u1 u2 – u ) gforth-1.0 “umax”