00:00:00 --- log: started retro/06.09.24 04:57:13 http://retroforth.net/paste/?id=186 04:57:33 Quartus, that converts floating points into octal representation. 04:59:56 thus it handles the exponent. 09:31:23 --- log: started retro/06.09.24 09:31:23 --- join: clog_ (n=nef@bespin.org) joined #retro 09:31:23 --- topic: 'RetroForth | Pastebin @ http://retroforth.net/paste | The editing key is 'despair'' 09:31:23 --- topic: set by crc on [Sat Aug 05 13:13:30 2006] 09:31:23 --- names: list (clog_ Cheery Snoopy42 virl Quartus__ timlarson thinfu nighty__ neceve nighty clog Quartus @Raystm2 lukeparrish @crc @ChanServ Shain) 09:46:02 --- quit: clog (Connection timed out) 09:46:02 --- nick: clog_ -> clog 09:47:26 --- quit: thinfu (Read error: 110 (Connection timed out)) 10:26:31 That's one way to do it :) You need to handle + and - zero. 10:52:59 Cheery, I like how that reads in RetroForth. neat. 10:53:37 Quartus: the section words are a nice addition. 10:55:02 Quartus, but it is handling + and - zero? 10:55:06 or wait, is it? :) 10:55:25 yes, it is doing. :) 10:55:41 oh ok. Didn't catch that. 10:55:50 it writes: -0e for negative zero and 0e for positive. 10:56:03 there's that little word called put-sign, which takes care of that. 10:56:18 Raystm2, in standard Forth I use module/end-module quite a lot. It's a handy tool for encapsulation, and to aid in factoring. 10:56:42 Cheery, I recall there's a couple of other special patterns. 11:04:20 +INF, -INF, NaN? 11:04:28 I put all in I found from wikipedia article. :D 11:04:37 and they all works. 11:04:39 There's a few more, let me check 11:06:48 No, I guess that's the lot. Something nags at me, but it may just be a lack of coffee. :) If I think of it I'll let you know. 11:15:28 heh. 11:15:41 What nags at you is that thing shows the floats in octals. ;) 11:15:49 (I guess.) 11:15:57 No. I haven't tried the code, actually. 11:22:17 where's futhin? Didn't he say this could all be done in 8 lines of forth? :) 11:39:46 futhin comes up with lots of bogus numbers... though perhaps with really long lines.... :) 11:51:39 --- quit: Snoopy42 () 12:03:05 I noticed one intresting thing: 12:03:27 to switch from 10 base to 8 base, you just need to add two's into the number. 12:03:28 like. 12:03:33 23 12:03:44 add 4 and you have the octal version 12:03:46 27 12:04:06 thought, I don't know how to handle this thing with bigger numbers yet. :D 12:05:45 .5, in this you must decrease amounts somehow. 12:05:48 to get .4 12:06:07 so the method doesn't seem to work for negative exponents. 12:07:05 --- join: Snoopy42 (i=snoopy_1@dslb-084-058-190-251.pools.arcor-ip.net) joined #retro 12:10:32 oh well, I'll stay in 8 base. 12:10:57 It seems good for things I do anyways. ^^ 12:27:13 myself I'd prefer hex to octal, except yo'd have to use something other than e for exponents. 12:37:15 quartus, what do you prefer? 12:37:18 octonents? 12:37:23 or hexponents :D 12:38:01 heh. Maybe. 123h4 would be good, also reminding you it's a hex float. 12:45:29 or 123$4 for hex, 123%4 for octal 12:54:24 LOL 12:54:34 I lke thi 123.3&2 12:54:40 :) 12:54:47 It looks somehow logical, doesn't it? 13:41:18 I don't know, actually I suspect the special symbols would be confusing. 13:42:11 hmm. 13:42:21 123.3o2 seems good for me. :/ 13:42:29 thought & doesn't look bad at all too. 13:42:32 there's the O/0 problem. 13:43:43 yeh. 14:16:48 --- quit: neceve ("Leaving") 14:22:54 --- quit: Cheery ("Download Gaim: http://gaim.sourceforge.net/") 16:03:13 --- quit: virl ("Verlassend") 17:06:56 --- join: nighty_ (n=nighty@H123.C72.B0.tor.eicat.ca) joined #retro 17:14:13 --- quit: nighty__ (Read error: 110 (Connection timed out)) 18:06:04 --- join: jas2o (n=jas2o@wnpp-p-144-134-163-51.prem.tmns.net.au) joined #retro 20:37:38 --- join: nighty__ (n=nighty@H123.C72.B0.tor.eicat.ca) joined #retro 20:40:51 --- quit: nighty_ (Read error: 145 (Connection timed out)) 21:13:38 --- quit: nighty__ (Remote closed the connection) 21:29:53 --- quit: jas2o ("Chatzilla 0.9.74 [XULRunner 1.8.0.1/2006012608]") 23:35:15 --- join: Cheery (n=Cheery@a81-197-19-23.elisa-laajakaista.fi) joined #retro 23:59:59 --- log: ended retro/06.09.24