[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: s>number? beginner question
From: |
Bernd Paysan |
Subject: |
Re: s>number? beginner question |
Date: |
Thu, 05 Mar 2020 12:49:32 +0100 |
Am Donnerstag, 5. März 2020, 10:35:07 CET schrieb Robert Sander:
> Hi,
>
> could somebody explain why I only get three cells with zeroes when
> using s>number?
>
> Example:
>
> " 123" s>number? .s <3> 0 0 0 ok 3
The standard word for strings is S" with space and then the string.
s" 123" s>number? .s <3> 123 0 -1 ok 3
The non-standard extension with the string recognizer you are using doesn't
need the space, and includes it in the string when you have it there.
"123" s>number? .s <3> 123 0 -1 ok 3
--
Bernd Paysan
"If you want it done right, you have to do it yourself"
net2o id: kQusJzA;7*?t=uy@X}1GWr!+0qqp_Cn176t4(dQ*
https://net2o.de/
signature.asc
Description: This is a digitally signed message part.