Share

Units Conversion Library

Tracker: Bugs

5 various ways to lose sign during conversion - ID: 760980
Last Update: Comment added ( techentin )

1) Using units.tcl , the sign value is lost in the
denominator during conversion:

examples:
% units::convert "1 degree / -2 s" degree/s
0.5
% units::convert "/ -2 s" Hz
0.5

2) Extra white space on the first argument of the entry
causes the sign value to be lost.

example (Note the extra space in from of the -1):
units::convert " -1 degree / 2 s" degree/s
0.5


Scott McPhillips ( mcphscott ) - 2003-06-26 06:21

5

Closed

Fixed

Bob Techentin

None

None

Public


Comment ( 1 )

Date: 2005-08-17 06:00
Sender: techentinProject Admin

Logged In: YES
user_id=43494

The second example, with leading spaces before the scale
factor, is a valid bug, and is fixed. But the first
example, with a scale factor in the denominator, isn't a
valid unit. (see the documentation on "Unit String Format."



Attached File

No Files Currently Attached

Changes ( 4 )

Field Old Value Date By
status_id Open 2005-08-17 06:00 techentin
resolution_id None 2005-08-17 06:00 techentin
close_date - 2005-08-17 06:00 techentin
assigned_to nobody 2004-01-26 18:35 techentin