From: "John Jardine"
Subject: Re: Integer divide
Date: Fri, 10 Jan 2003 19:44:03 -0000
References: <firstname.lastname@example.org> <3E1DF384.email@example.com> <firstname.lastname@example.org>
NNTP-Posting-Date: 10 Jan 2003 19:30:08 GMT
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
John Larkin wrote in message
> On Thu, 09 Jan 2003 14:31:47 -0800, John Larkin
> >On Thu, 09 Jan 2003 22:11:16 +0000, Mike Page
> > wrote:
> >>My first task at my current employer was to write a utility that
> >>"converted" between single precision float and the hex digits
> >>representing the number for a HART transmitter we were developing. My
> >>new boss suggested I used QuickBasic or some such contrivance. Okay -
> >>not my first choice, but I persevered for two days without really
> >>finishing it. Eventually I gave up and coded it in C in half an hour.
> >>Today it would take me a few minutes.
> >>Up till then I had treated all languages more or less equally. I haven't
> >>touched Basic, in any guise, since. I have only recently left the
> >>confines of compiled languages and started to use PHP.
> > RESULT$ = HEX$(FLOATER$)
> >which took about 10 seconds, because I type slow. To do something more
> >specialized, like fix the floater and then pull out/convert specific
> >bit fields, might take a couple of minutes.
> oops, that should have been
> RESULT$ = HEX$(FLOATER!)
> which is exactly one bug per line.
It's been 24hours now. I was rather hoping to see a couple of neat 'C'
solutions turn up.
Seems like the C afficionado's enjoy talking the talk but not walking the