←back to thread

303 points zdw | 2 comments | | HN request time: 0.436s | source
Show context
robin_reala ◴[] No.44500076[source]
If you’re one of today’s lucky 10,000 and haven’t heard the original 500-mile email story, you can read it at https://web.mit.edu/jemorris/humor/500-miles.

(discussed previously on HN 5 years ago – https://news.ycombinator.com/item?id=23775404 – and 10 years ago – https://news.ycombinator.com/item?id=9338708)

replies(10): >>44500186 #>>44500188 #>>44500324 #>>44500388 #>>44500395 #>>44500505 #>>44500890 #>>44504294 #>>44504475 #>>44504728 #
jeffhuys ◴[] No.44500505[source]

   > units
   751 units, 62 prefixes
   You have: 10 miles
   You want: meters
    * 16093.44
    / 6.2137119e-05
Huh. Never knew that was a thing!
replies(2): >>44500625 #>>44501068 #
bqmjjx0kac ◴[] No.44500625[source]
I always want to reach for `units`, but I'm perennially baffled by the output! What's up with the * and /?
replies(3): >>44500696 #>>44500752 #>>44501101 #
1. Symbiote ◴[] No.44501101[source]
I usually call it non-interactively:

  $ units 1500DKK USD
      * 236.76653
      / 0.00422357
in which case it's always the first line I want.

(The second line is telling me 1USD is 0.00422357 of 1500DKK.)

Note if you use the currency conversions,

  systemctl enable units-currency-update.timer
is needed to keep them up-to-date.
replies(1): >>44509488 #
2. tmtvl ◴[] No.44509488[source]
If you only need the first line you can invoke units with --terse.

  $ units --terse 2.4kWh megajoules
  8.64