LWN.net Logo

Units continued

Units continued

Posted Oct 16, 2008 12:19 UTC (Thu) by sbakira (subscriber, #5571)
In reply to: Units continued by butlerm
Parent article: OpenOffice.org 3.0 released

This is plain non sense.

Multiply a meter value by a meter value and you get square meters.
Multiply it again by a meter value and you get cubic meters (add a dimension).

This indeed has a relation with the operation you did.
When you divide square meters with meter, you get back a meter value.
There is indeed some rules with the units.

I remember back in school having to deal with kg^2.s^2/m^-3.

Look at the MKSA system and the expression of the common units in international units (Ohm for example).

Anyway, you are right for the mix of the units and the values, but making operations values with units change the nature of the object you manipulated. Think of it like an attribute of the value (like in a class).
ex:
4 meters / 2 meters = 2 (2 nothing, a pure numeric value).
4 meters / 2 seconds = 2 m/s (meter per second or m.s^-1)


(Log in to post comments)

Copyright © 2012, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds