Exact match. Not showing close matches.
PICList
Thread
'[OT]: Help the metric man'
2001\05\23@112751
by
David Cary
|
Dear people who are forced to support *both* metric and imperial units,
I agree that it's a good idea to store measurements as integer multiples of some
``internal unit'', then converting to feet, inches, decimal inches, fractional
inches, meters, mm, etc. at the last instant before display.
From a long discussion on the [PEDA] list:
There are exactly 25.400 mm in an inch.
If your "internal unit" has length 0.2 mm (or some fraction like 0.1 mm or
whatever),
then you can convert exactly to inches by dividing by 127 (or 254 or whatever).
You can convert exactly to mm by dividing by 5 (or 10 or whatever).
If 0.2 mm cannot be stored as an exact integer multiple of your ``internal
unit'', then you cannot make exact conversions back and forth between inches and
mm.
Alternatively, just use whatever integer values your measuring device spits out.
You can't get any better precision than just directly converting that integer to
inches or meters or whatever (vs. converting those units to some ``internal
unit'', then converting again to inches, meters, etc.). Exact conversions are
overrated :-).
"Gennette, Bruce" <spam_OUTbruce.gennetteTakeThisOuT
TAFE.NSW.EDU.AU> on 2001-04-10 07:25:58 PM
wrote:
...
>Subject: Re: [PIC]: Help the metric man
...
>I suggest you store the measurements as 1 / 240 of an inch and convert to
>the desired system as required. This fractional value will fit in a single
>byte and will readily convert to most of the systems in use (except for
>mils), including rounding to 2 decimals when a decimal display is desired.
>Storing as 1 / 64 is also feasible, but doesn't readily give 1 / 10" :(
...
>Even if you don't offer alternate displays for this project I think it would
>be worth while to work in 1 / 240" internally so that the code can be reused
>in later projects.
>
>Bye.
{Original Message removed}
2001\05\23@114417
by
Graham
2001\05\23@115010
by
D Lloyd
2001\05\23@190853
by
Russell McMahon
> 42 and a bit.......didn't you know?
>
> Dan
> ..how many whatevers to the inch then ?
>
> Graham
Base 13 of course.
RM
--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics
2001\05\23@211521
by
Bob Ammerman
And what _is_ the value of 42 base 13?
Bob Ammerman
RAm Systems
(contract development of high performance, high function, low-level
software)
{Original Message removed}
2001\05\24@005218
by
Jeff DeMaagd
Is 42 already in base 13? I think that would be 54 in base ten.
If 42 is in base ten, I think the base 13 conversion would be 33.
Jeff
{Original Message removed}
2001\05\24@010819
by
Ray Gardiner
>And what _is_ the value of 42 base 13?
54 or as Douglass Adams says, what is six times nine :-)
>
>Bob Ammerman
>RAm Systems
>(contract development of high performance, high function, low-level
>software)
>
>{Original Message removed}
2001\05\24@023525
by
Russell McMahon
|
> And what _is_ the value of 42 base 13?
It's 42 of course - just like the value of 10 is 10 :-)
Of course, if you mean, to some other base than 13, then the answer may be -
The bases are listed in base 10 decimal to avoid infinite regress.
The values are the value of 42 to the base 13-decimal in the base listed.
Base Value
5 204
6 130
7 6C (A, B, C ... as in std hex)
8 66
9 60
10 54 (which is no doubt what you meant :-) )
11 4A 12 46
13 42 Natch
14 3C
15 3B
16 36
E&OE
No cultured person should ever need to use a base above 16 (too base?)
Any confusion which you still experience is normal reality at your current
location in the space time continuum.
Russell McMahon
PS Electron spin is not felt to feature in this current discussion.
{Quote hidden}> > > 42 and a bit.......didn't you know?
> > >
> > > Dan
> >
> > > ..how many whatevers to the inch then ?
> > >
> > > Graham
> >
> >
> > Base 13 of course.
> >
> >
> >
> > RM
--
http://www.piclist.com hint: The PICList is archived three different
ways. See http://www.piclist.com/#archives for details.
2001\05\24@025038
by
David Huisman
2001\05\24@025847
by
Graham
2001\05\24@082721
by
Russell McMahon
> Isn't 42(base 10) = 33(base 13) ?
Yes.
But the original said or should have said 42 base 13 - which is equal of
course to 54 base 10.
In case anyone wonders where all this drivel arose from :-) - the 42 to the
base 13 comes from Douglas Adam's Hitch-hikers guide to the galaxy 5 book
trilogy.
RM
--
http://www.piclist.com hint: The PICList is archived three different
ways. See http://www.piclist.com/#archives for details.
2001\05\24@084548
by
ael E Maj ACC/XPPI
Following this thread reminds me of an old joke:
Why do software engineers get Christmas and Halloween mixed up?
Because Oct 31 = Dec 25
{Original Message removed}
2001\05\24@090050
by
michael brown
> Following this thread reminds me of an old joke:
>
> Why do software engineers get Christmas and Halloween mixed up?
>
> Because Oct 31 = Dec 25
LOL I've been programming for more than 20 years and I never heard that one
before. The sad thing is that my experience is on an octal based machine
(36 bit words). Bull DPS 8 type (Honeywell 6000 or GE 635 for the old
timers)
michael
--
http://www.piclist.com hint: The PICList is archived three different
ways. See http://www.piclist.com/#archives for details.
2001\05\24@092708
by
Bob Barr
|
>From: michael brown <n5qmg
spam_OUTAMSAT.ORG>
>Reply-To: pic microcontroller discussion list <@spam@PICLISTKILLspam
MITVMA.MIT.EDU>
>To: KILLspamPICLISTKILLspam
MITVMA.MIT.EDU
>Subject: Re: [OT]: Help the metric man
>Date: Thu, 24 May 2001 07:56:57 -0500
>
> > Following this thread reminds me of an old joke:
> >
> > Why do software engineers get Christmas and Halloween mixed up?
> >
> > Because Oct 31 = Dec 25
>
>LOL I've been programming for more than 20 years and I never heard that one
>before. The sad thing is that my experience is on an octal based machine
>(36 bit words). Bull DPS 8 type (Honeywell 6000 or GE 635 for the old
>timers)
>
>michael
>
Same here, but my first experience was on the somewhat more obscure
Fairchild FST-2 computer (24-bit machine).
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
--
http://www.piclist.com hint: The PICList is archived three different
ways. See http://www.piclist.com/#archives for details.
2001\05\24@094615
by
ael E Maj ACC/XPPI
I believe I first heard it about 20-25 years ago when I was learning to
"code" on a Monroe 1880 just before I moved up to a real processor the 8080.
I figured this forum would see humor in it...
cheers Mike
{Original Message removed}
2001\05\24@102123
by
Russell McMahon
> Following this thread reminds me of an old joke:
>
> Why do software engineers get Christmas and Halloween mixed up?
>
> Because Oct 31 = Dec 25
That's VERY good.
RM
--
http://www.piclist.com hint: The PICList is archived three different
ways. See http://www.piclist.com/#archives for details.
2001\05\24@144913
by
Peter L. Peres
2001\05\24@171616
by
Chris Carr
> > Isn't 42(base 10) = 33(base 13) ?
>
> Yes.
> But the original said or should have said 42 base 13 - which is equal of
> course to 54 base 10.
> In case anyone wonders where all this drivel arose from :-) - the 42 to
the
> base 13 comes from Douglas Adam's Hitch-hikers guide to the galaxy 5 book
> trilogy.
>
>
Now that the PicList has explained the answer to the ultimate question
of Life, The Universe, and Everything I may as well Unscribble, drink a
PanGalacticGargleBlaster and see if the Sirius Cybernetics Corporation
has any vacancies before the Hyperspace Bypass gets made.
Chris Carr
Your Plastic Pal who's fun to be with.
--
http://www.piclist.com hint: The PICList is archived three different
ways. See http://www.piclist.com/#archives for details.
2001\05\24@173103
by
John Pfaff
When presented with the fact that when you multiply 9 by 6 you get 42 (if
you do it all in base 13), Douglas Adams himself said something to the
effect of "nobody writes jokes in base 13." (It has to be true, I read it
on Slashdot).
All your base are belong to us.
John Pfaff - KA3RVE
RemoveMEpfaffTakeThisOuT
writeme.com
Registered with the Linux Counter.
http://counter.li.org
ID # 39256
{Original Message removed}
2001\05\24@180912
by
Russell McMahon
2001\05\24@215516
by
Russell McMahon
part 1 772 bytes content-type:text/plain; (decoded 7bit)
> When presented with the fact that when you multiply 9 by 6 you get 42 (if
> you do it all in base 13), Douglas Adams himself said something to the
> effect of "nobody writes jokes in base 13." (It has to be true, I read it
> on Slashdot).
>
> All your base are belong to us.
>
> John Pfaff - KA3RVE
Two for the price of one.
Sorry about editing quality * - work beckons.
{Quote hidden}> > > 42 and a bit.......didn't you know?
> > >
> > > Dan
> >
> > > ..how many whatevers to the inch then ?
> > >
> > > Graham
> >
> >
> > Base 13 of course.
> >
> >
> >
> > RM
* - original image copyright unknown.
part 2 3615 bytes content-type:image/jpeg; (decode)

part 3 131 bytes
--
http://www.piclist.com hint: The PICList is archived three different
ways. See http://www.piclist.com/#archives for details.
2001\05\25@095538
by
Ray Gardiner
At 17:30 24/05/01 -0400, you wrote:
>When presented with the fact that when you multiply 9 by 6 you get 42 (if
>you do it all in base 13), Douglas Adams himself said something to the
>effect of "nobody writes jokes in base 13." (It has to be true, I read it
>on Slashdot).
>
>All your base are belong to us.
>
>John Pfaff - KA3RVE
>spamBeGonepfaffspamBeGone
writeme.com
>Registered with the Linux Counter.
> http://counter.li.org
> ID # 39256
>
Ha Ha.... You got my vote for the wittiest piclist post.. very good.
--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email TakeThisOuTlistservEraseME
spam_OUTmitvma.mit.edu with SET PICList DIGEST in the body
More... (looser matching)
- Last day of these posts
- In 2001
, 2002 only
- Today
- New search...