| Deutsch English Français Italiano |
|
<eaf57910d5470b7f03d90820799e3fb611997353@i2pn2.org> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder9.news.weretis.net!i2pn.org!i2pn2.org!.POSTED!not-for-mail From: dxf <dxforth@gmail.com> Newsgroups: comp.lang.forth Subject: Re: Why dial-a-standard is not a thing in Forth Date: Wed, 23 Apr 2025 22:01:58 +1000 Organization: i2pn2 (i2pn.org) Message-ID: <eaf57910d5470b7f03d90820799e3fb611997353@i2pn2.org> References: <87bjtn2hct.fsf@gmail.com> <dd55bec1ebb7aab808238c85e4387516@www.novabbs.com> <041d497b574d3140330ec97a2e03690ab2b42b72@i2pn2.org> <nnd$29830c0f$2e51fade@8de92a0923429204> <2025Apr16.232617@mips.complang.tuwien.ac.at> <nnd$60cc02ca$725869db@21cae134d827dee1> <2025Apr18.082817@mips.complang.tuwien.ac.at> <87v7qz5jq1.fsf@nightsong.com> <757e2ced7a6ff4b73d9fa4531d29ff611dc72e10@i2pn2.org> <vu2sk0$3sr9q$1@dont-email.me> <7bacaec09cb8176cf6ae972c04937b0b93732afd@i2pn2.org> <vu5k6a$2da4h$1@dont-email.me> <24bf7eaed4867bc968598dccedcceeb42764d9da@i2pn2.org> <91038bcc6ac5006adc6996692a8f7034@www.novabbs.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Wed, 23 Apr 2025 12:01:58 -0000 (UTC) Injection-Info: i2pn2.org; logging-data="1534112"; mail-complaints-to="usenet@i2pn2.org"; posting-account="XPw7UV90Iy7EOhY4YuUXhpdoEf5Vz7K+BsxA/Cx8bVc"; User-Agent: Mozilla Thunderbird In-Reply-To: <91038bcc6ac5006adc6996692a8f7034@www.novabbs.com> Content-Language: en-GB X-Spam-Checker-Version: SpamAssassin 4.0.0 Bytes: 2351 Lines: 25 On 23/04/2025 8:21 pm, mhx wrote: > On Tue, 22 Apr 2025 0:50:13 +0000, dxf wrote: > >> On 22/04/2025 12:19 am, sjack wrote: >>> dxf <dxforth@gmail.com> wrote: > [..] >> 16 base ! 10 cvd decimal . 10 ok >> 2 base ! 10 cvd decimal . 10 ok >> 36 base ! -10 cvd decimal . -10 ok > > Why not store the number as text in this case? Where, when? > What is the advantage? As a user I still need > to know the BASE (unless it is assumed to be > always 10). The context of the routine was that the user had already input a number (i.e. it's on the stack) in a base possibly different from decimal but needed the number interpreted as if it were decimal. There are certainly limitations e.g. if I'm in hex and using a 16-bit forth the maximum digits I can enter is 4. If I'm in octal I can't enter '8' or '9'.