Searching \ for '[OT]: Help the metric man' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: massmind.org/techref/index.htm?key=help+metric+man
Search entire site for: 'Help the metric man'.

Exact match. Not showing close matches.
PICList Thread
'[OT]: Help the metric man'
2001\05\23@112751 by David Cary

flavicon
face
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.gennetteTakeThisOuTspamTAFE.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

flavicon
face
or
>whatever),
> (or 254 or whatever).
>(or 10 or whatever).
>
>just use whatever
>inches or meters or whatever


..how many whatevers to the inch then ?

Graham



R.F. Professionals    http://www.rfpa.com
Radio Amateurs        http://www.rfham.com

--
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@115010 by D Lloyd

flavicon
face
part 1 873 bytes content-type:text/plain; charset=us-ascii
42 and a bit.......didn't you know?

Dan



(Embedded     Graham <.....Graham.DKILLspamspam@spam@WANADOO.FR>KILLspamspam@spam@MITVMA.MIT.EDU>> image moved   23/05/2001 16:44
to file:
pic28367.pcx)





Please respond to pic microcontroller discussion list
     <
PICLISTspamKILLspamMITVMA.MIT.EDU>
Sent by:  pic microcontroller discussion list <.....PICLISTKILLspamspam.....MITVMA.MIT.EDU>


To:   EraseMEPICLISTspam_OUTspamTakeThisOuTMITVMA.MIT.EDU
cc:
Subject:  Re: [OT]: Help the metric man

Security Level:?         Internal


or
>whatever),
> (or 254 or whatever).
>(or 10 or whatever).
>
>just use whatever
>inches or meters or whatever


..how many whatevers to the inch then ?

Graham



R.F. Professionals    http://www.rfpa.com
Radio Amateurs        http://www.rfham.com

--
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






part 2 165 bytes content-type:application/octet-stream; (decode)

part 3 144 bytes
--
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@190853 by Russell McMahon

picon face
> 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

picon face
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

flavicon
face
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

flavicon
face
>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

picon face
> 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}

--
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

flavicon
face
Isn't 42(base 10) = 33(base 13) ?

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


2001\05\24@025847 by Graham

flavicon
face
At 21:14 23/05/01 -0400, you wrote:
>And what _is_ the value of 42 base 13?
>
>Bob Ammerman


approximately 5,450,200 Lira.

Graham



R.F. Professionals    http://www.rfpa.com
Radio Amateurs        http://www.rfham.com

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


2001\05\24@082721 by Russell McMahon

picon face
> 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

flavicon
face
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

flavicon
face
> 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

picon face
>From: michael brown <n5qmgspamspam_OUTAMSAT.ORG>
>Reply-To: pic microcontroller discussion list <@spam@PICLISTKILLspamspamMITVMA.MIT.EDU>
>To: KILLspamPICLISTKILLspamspamMITVMA.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

flavicon
face
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

picon face
> 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

picon face
> And what _is_ the value of 42 base 13?

In what base ?

Peter

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


2001\05\24@171616 by Chris Carr
flavicon
face
> > 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

flavicon
face
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
RemoveMEpfaffTakeThisOuTspamwriteme.com
Registered with the Linux Counter.
   http://counter.li.org
   ID # 39256

{Original Message removed}

2001\05\24@180912 by Russell McMahon

picon face
> All your base are belong to us.
>
> John Pfaff - KA3RVE


Here we go again again :-)
Now why didn't I think of that response.


       RM

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


2001\05\24@215516 by Russell McMahon

picon face
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}

* - 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

flavicon
face
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
>spamBeGonepfaffspamBeGonespamwriteme.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 TakeThisOuTlistservEraseMEspamspam_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...