Your message dated Mon, 21 Jul 2008 13:02:09 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#359658: fixed in units 1.87-1
has caused the Debian Bug report #359658,
regarding units: precedence of '/' is bad
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)


-- 
359658: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=359658
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: units
Version: 1.85-3
Severity: normal


The man page explains why I have had some nasty bugs pop up in my
calculations:

       Multiplication has a higher precedence than division and is evaluated  
left  to  right,  so
       `m/s  *  s/day' is equivalent to `m / s s day' and has dimensions of 
length per time cubed.
       Similarly, `1/2 meter' refers to a unit of reciprocal length equivalent 
to .5/meter,  which
       is  probably  not  what  you would intend if you entered that 
expression.  You can indicate
       division of numbers with the vertical dash (`|').  This operator has the 
highest precedence
       so the square root of two thirds could be written `2|3^1|2'.

This is a poor choice, because algebraic notation says that division
has equal precedence to multiplication, and such operations are
performed left to right.  This is the convention used in algebra,
algebraic calculators, and most computer languages.

See http://en.wikipedia.org/wiki/Order_of_operations

Since any such change is liable to break existing units scripts, it
might be wise to make use of a commandline switch or environment
variable to switch between the historical implementation and this, if
this were to be changed.

Cute:
You have: 2/3/4
You want: 
        Definition: 0.16666667
You have: 2/3*4
You want: 
        Definition: 0.16666667


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15.1
Locale: LANG=en_AU, LC_CTYPE=en_AU (charmap=ISO-8859-1)

Versions of packages units depends on:
ii  libc6                         2.3.6-3    GNU C Library: Shared libraries an
ii  libncurses5                   5.5-1      Shared libraries for terminal hand
ii  libreadline5                  5.1-6      GNU readline and history libraries

units recommends no packages.

-- no debconf information


--- End Message ---
--- Begin Message ---
Source: units
Source-Version: 1.87-1

We believe that the bug you reported is fixed in the latest version of
units, which is due to be installed in the Debian FTP archive:

units_1.87-1.diff.gz
  to pool/main/u/units/units_1.87-1.diff.gz
units_1.87-1.dsc
  to pool/main/u/units/units_1.87-1.dsc
units_1.87-1_amd64.deb
  to pool/main/u/units/units_1.87-1_amd64.deb
units_1.87.orig.tar.gz
  to pool/main/u/units/units_1.87.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
John Hasler <[EMAIL PROTECTED]> (supplier of updated units package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Sun, 20 Jul 2008 21:54:50 -0500
Source: units
Binary: units
Architecture: source amd64
Version: 1.87-1
Distribution: unstable
Urgency: low
Maintainer: John Hasler <[EMAIL PROTECTED]>
Changed-By: John Hasler <[EMAIL PROTECTED]>
Description: 
 units      - converts between different systems of units
Closes: 359658 456544
Changes: 
 units (1.87-1) unstable; urgency=low
 .
   * New upstream release
 .
     Upstream made "*" and "/" the same precedence.
     Closes: #359658: units: precedence of '/' is bad
 .
     Units reads ~/.units.dat if it exists before reading the standard
     units database.
     Closes: #456544: units: $UNITSFILE doesn't override default anymore
Checksums-Sha1: 
 1c0ef9d6a0c434ecb8ae80cc7bec37dc2da1c2a4 1065 units_1.87-1.dsc
 106f9751fab6de4fc1fe27e735a1080262ba372a 254893 units_1.87.orig.tar.gz
 a5ce41326670728dd5893477a8debb3864ce3edc 5566 units_1.87-1.diff.gz
 0a41bb7c86dfe06e89fdef46a304ca57ad933b7c 145804 units_1.87-1_amd64.deb
Checksums-Sha256: 
 b3f7bd8faecf51b600cef12cf8f219fde26ce55b1e0c215a36bd6a0adbb8664d 1065 
units_1.87-1.dsc
 d9cb59b62c14b0c6e437902b2284b5debac6452ad549761cab12985abcca2dad 254893 
units_1.87.orig.tar.gz
 a74c1f4822debb1dd1242c14347f9f7af7219a2261f45a42e3ce4af3ef6ecf4f 5566 
units_1.87-1.diff.gz
 1dccf33175e88419466edae642c8815a9d4c090428f198134f3a8b993e783b95 145804 
units_1.87-1_amd64.deb
Files: 
 7486d9c113d10d563afea0952f4f8439 1065 utils optional units_1.87-1.dsc
 8cf47adf29e38a9aa744e8d5246d1bec 254893 utils optional units_1.87.orig.tar.gz
 79160dba94c111e8debdc558c05cc03d 5566 utils optional units_1.87-1.diff.gz
 3366a4ea59dc520464ab8fc2be65fcb0 145804 utils optional units_1.87-1_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iQCVAwUBSISAmvc1CeQKxb5hAQLYugQAxIR/K1ohY91O8pNVntBmxvmRHsVR3LW4
yBXNr6mTwJ3ilLD6z6eWtK+71656G88O3P6StHt4mgA+ZYXKqRK0s3bjcrNMwfWx
Sv+v9C2zuJIqnCT9+GSLSvhkBdkZvKzOJHqb1BXcRCthnw8cN37BkFBDA2KFZpFc
11gRE8hsq/E=
=6tGZ
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to