Re: milliametres
- From: "Maarten Wiltink" <maarten@xxxxxxxxxxxxxxxxxx>
- Date: Wed, 6 Jul 2005 20:27:37 +0200
"Verne" <verneb@xxxxxxxxxx> wrote in message
news:tkTye.4579$is5.519337@xxxxxxxxxxxxxxxxxxxxxxxx
> From: "Miche" <1h4t3@xxxxxxxxxxxx>
>> I want to print exactly in millimeters. I found some examples, but
>> i were not fully satisfied. Can somebody help me?
> Your problem is really very simple. Can you print in inches? If
> so you can print in milliameters. Give us a code example so we can
> really help you out here.
>
> 10 mills per centimetre and roughtly 30 centimetres per foot.
Aren't "mills" milli-inches? And using 30-centimetre feet would never
do; unless you get the numbers exactly right (as far as floating point
allows anyway); you'll regularly be pulling your hair out.
The first time I had to compute pixel positions for printing, I used
inches internally and a conversion table externally. It had entries
for inches, centimetres, millimetres, and hair's widths - an historical
unit more or less arbitrarily set at 48 hairs to the inch (hair must
have been very much thicker then).
The conversion table specified an integer number of units against
100 inches. The first try had integers against single inches because
I thought that approximating an inch as 25 millimetres would suffice.
That was one notion I quickly disabused myself of. The use of integers,
incidentally, was for ease of parsing.
Groetjes,
Maarten Wiltink
.
- Follow-Ups:
- Re: milliametres
- From: Dr John Stockton
- Re: milliametres
- References:
- milliametres
- From: Verne
- milliametres
- Prev by Date: milliametres
- Next by Date: Re: problems with Floating numbers
- Previous by thread: milliametres
- Next by thread: Re: milliametres
- Index(es):
Relevant Pages
|