On 10/8/26 3:07 PM, peter wrote:
...
> : f.n ( F:fp n -- )
...
> over 0< if
> dup 0 <= if nip 0 swap else \ negative e and n
> swap over 1- negate max swap \ limit negative n
> else swap over 1024 swap - min swap then then \ limit positive n
...
> Here is the code for (F.N)
>
> \ (F.N) print float with n decimals to string
> : (f.n) ( F:fp n -- )
...
> over 0< if
> dup 0 <= if nip 0 swap else \ negative e and n
> swap over 1- negate max swap \ limit negative n
> else swap over 1024 swap - min swap then then \ limit positive n
...
The code snippets above use a control structure of the form
IF ... IF ... ELSE ... ELSE ... THEN THEN
Is this consistent with the standard?
--
Krishna