Unit conversions

Issue #397 closed
Former user created an issue

Originally reported on Google Code with ID 397

by adding Unit conversions speedcrunch more useful.

as attached ..

Reported by nemapatho on 2012-02-05 07:25:31

<hr> * Attachment: 1.png<br>1.png

Comments (5)

  1. Helder Correia repo owner

    @polwel Any reason why pull request #18 doesn't include a lot of (non-SI) units, e.g. foot, and instead requires the user to define "foot = 0.3048 meter" beforehand? Or even centimeter.

  2. Pol Welter

    Because I was lazy. Simple as that. Didn't want to look up the numbers :)

    It is super straightforward though. Just add them in Evaluator::initializeBuiltInVariables()

    About SI prefixes: I think it is kind an elegant way to have them defined separately, like mega = 1e6. I can then write 10 mega newton (agreed; the space looks slightly awkward) and it will just work. I don't see a reason why we should include tons of redundant units like centimeter, milligram. Let the user to this if she'd like to use this notation.

  3. Log in to comment