Menu

Small unit conversion bug

Help
Metronite
2007-04-24
2013-04-11
  • Metronite

    Metronite - 2007-04-24

    First I wanted to say that I've found your unit conversion library quite slick and easy to work with. Great job!

    However, I've noticed a small bug in the default unit definitions.

    The line:

    new UnitList("Knot", "knot", "1", "mmi/hr", "", "velocity");

    should read:

    new UnitList("Knot", "knot", "1", "nmi/hr", "", "velocity");

    A knot, of course, being a nautical mile per hour, not a milli mile per hour :).

    I assume that I should be able to make that change, run UnitList to re-generate UnitInit.java, recompile, and be good to go?

    Anyway, thanks for the very cool library!

     
    • Fred Gylys-Colwell

      Thanks for catching that!  I will put the change into CVS and add a new release soon.

      You are correct: If you change UnitList and run it, then recompile, everything should be fine.  Good luck!

      -- Fred.

       

Log in to post a comment.