Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.forth > #38969
| From | Paul Rubin <no.email@nospam.invalid> |
|---|---|
| Newsgroups | comp.lang.forth |
| Subject | Re: How to convert whole numbers to floating? |
| Date | 2015-05-11 08:28 -0700 |
| Organization | A noiseless patient Spider |
| Message-ID | <87k2wf16cg.fsf@jester.gateway.sonic.net> (permalink) |
| References | <765d92cc-590c-4da4-a0af-65f9116fbf52@googlegroups.com> |
beeflo <beeflobill@gmail.com> writes:
> I'm struggling to understand how conversion between the parameter
> stack and the floating stack works, using gforth.
> Right now, I'm just trying to convert whole numbers (from a loop
> index) to the floating stack.
I don't understand what you are trying to do. It sounds like you're
asking for s>f (single to float) since d>f converts a double width integer.
Example (gforth 0.7.0):
: test cr 10 0 do i s>f 2e f/ f. loop cr ; ok
test
0. 0.5 1. 1.5 2. 2.5 3. 3.5 4. 4.5
ok
Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How to convert whole numbers to floating? beeflo <beeflobill@gmail.com> - 2015-05-11 08:20 -0700
Re: How to convert whole numbers to floating? Paul Rubin <no.email@nospam.invalid> - 2015-05-11 08:28 -0700
Re: How to convert whole numbers to floating? beeflo <beeflobill@gmail.com> - 2015-05-11 08:57 -0700
Re: How to convert whole numbers to floating? krishna.myneni@ccreweb.org - 2015-05-12 16:36 -0700
Re: How to convert whole numbers to floating? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2015-05-13 16:04 +0000
Re: How to convert whole numbers to floating? krishna.myneni@ccreweb.org - 2015-05-14 18:41 -0700
Re: How to convert whole numbers to floating? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2015-05-15 07:23 +0000
Re: How to convert whole numbers to floating? Coos Haak <chforth@hccnet.nl> - 2015-05-11 17:43 +0200
Re: How to convert whole numbers to floating? beeflo <beeflobill@gmail.com> - 2015-05-11 08:58 -0700
Re: How to convert whole numbers to floating? rickman <gnuarm@gmail.com> - 2015-05-11 15:09 -0400
Re: How to convert whole numbers to floating? hughaguilar96@gmail.com - 2015-05-11 09:21 -0700
Re: How to convert whole numbers to floating? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2015-05-11 16:55 +0000
csiph-web