Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by punnerud

6 years ago

units

You have: mph

You want: kph

        * 1.609344

        / 0.62137119

2 comments

punnerud

Reply

majewsky  6 years ago

I have

  alias units='units --verbose

in my shell rc which makes the output much more understandable:

  You have: mph
  You want: kph
          mph = 1.609344 kph
          mph = (1 / 0.62137119) kph

  • xigoi  6 years ago

    I find the reciprocal thing useless, so I have units='units --compact --one-line', which gives just the number you want.

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities