Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.forth > #48140
| From | anton@mips.complang.tuwien.ac.at (Anton Ertl) |
|---|---|
| Newsgroups | comp.lang.forth |
| Subject | Re: Standard way of converting string to number |
| Date | 2016-06-14 12:21 +0000 |
| Organization | Institut fuer Computersprachen, Technische Universitaet Wien |
| Message-ID | <2016Jun14.142154@mips.complang.tuwien.ac.at> (permalink) |
| References | <0f61e146-8298-4b5e-ac8e-f50e8503ea73@googlegroups.com> <f3d5ec07-a77e-497b-a0af-45d3989bff9e@googlegroups.com> <7c27557a-be77-463d-b052-087a140ec811@googlegroups.com> |
Marek Brunda <marekb@phoenics.org> writes:
>Dne =C3=BAter=C3=BD 14. =C4=8Dervna 2016 12:37:30 UTC+2 humptydumpty napsal=
>(a):
>> On Tuesday, June 14, 2016 at 1:13:31 PM UTC+3, Marek Brunda wrote:
>> > It sems to me there is no standard way to convert string to number (the=
> oposite thing can be done at least via <# #S SIGN #> which is good mechani=
>sm but there should be at least one STANDARD word to do the dirty work for =
>you).=20
>> >=20
>> > Am I something missing?
>>=20
>> Hi!
>>=20
>> '>number'
>>=20
>> Have a nice day,
>> humptydumpty
>
>Thank you for answer. But standard >NUMBER is the workhorse to build the wo=
>rd in question...=20
>
>My question targets something like:
>
>NUMBER ( c-addr u -- n ) ( exception)
>or
>NUMBER ( c-addr u -- n f )
[...]
>When I write software I have two options:
...
>2. write my own string to number convertor based on standard >number
That's the option I recommend. What's so bad about it in your
opinion?
>but this is standardized:
>
>K-F1
>( -- u )
>Leaves the value u that the sequence EKEY EKEY>FKEY would produce when the =
>user presses the "F1" key.
>
>That's just crazy :-)
Why do you think so? K-F1 cannot be built out of other standard words
portably. OTOH, your NUMBER (either version) can be built out of
>NUMBER.
- anton
--
M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.html
comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
New standard: http://www.forth200x.org/forth200x.html
EuroForth 2016: http://www.euroforth.org/ef16/
Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Standard way of converting string to number Marek Brunda <marekb@phoenics.org> - 2016-06-14 03:13 -0700
Re: Standard way of converting string to number Marek Brunda <marekb@phoenics.org> - 2016-06-14 03:18 -0700
Re: Standard way of converting string to number humptydumpty <ouatubi@gmail.com> - 2016-06-14 03:37 -0700
Re: Standard way of converting string to number Marek Brunda <marekb@phoenics.org> - 2016-06-14 03:59 -0700
Re: Standard way of converting string to number Marek Brunda <marekb@phoenics.org> - 2016-06-14 04:05 -0700
Re: Standard way of converting string to number Marek Brunda <marekb@phoenics.org> - 2016-06-14 04:11 -0700
Re: Standard way of converting string to number anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-06-14 12:35 +0000
Re: Standard way of converting string to number krishna.myneni@ccreweb.org - 2016-06-14 04:28 -0700
Re: Standard way of converting string to number anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-06-14 12:21 +0000
Re: Standard way of converting string to number "HAA" <someone@microsoft.com> - 2016-06-15 11:57 +1000
Re: Standard way of converting string to number lehs <skydda.barnen@gmail.com> - 2016-06-14 06:49 -0700
Re: Standard way of converting string to number lehs <skydda.barnen@gmail.com> - 2016-06-14 07:16 -0700
Re: Standard way of converting string to number "Elizabeth D. Rather" <erather@forth.com> - 2016-06-14 16:59 +0200
Re: Standard way of converting string to number hughaguilar96@gmail.com - 2016-06-14 21:48 -0700
Re: Standard way of converting string to number Ron Aaron <rambamist@gmail.com> - 2016-06-15 07:52 +0300
csiph-web