Code Monkey home page Code Monkey logo

converter's People

Contributors

easyg0ing1 avatar hansolo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

converter's Issues

Volume conversion providing wrong result.

Converter volumeConverter_m3 = new Converter(VOLUME, CUBIC_METER);
        double meter = 3.0;
        double liter = volumeConverter_m3.convert(meter, LITER);
        System.out.println("liter :: " + liter);
        System.out.println("liter :: " + BigDecimal.valueOf(liter).toPlainString());

This conversion showing result
liter :: 3.0000000000000005E-6
liter :: 0.0000030000000000000005

But from Google unit conversion it should be :
image

Variations in Data size calculations possible?

Is there a way to get the DATA conversions to calculate from the different definitions that exist where in some cases, k = 1000 and in others, k = 1024? I realize that the formal definition is 1024 but all file systems don't necessarily use the formal definition, so it would be nice to have the library be settable to one or the other.

incorrect number

change 'MACH(new Unit(Category.SPEED, "M", "Mach", new BigDecimal("0.00293866995797")))'
to 'MACH(new Unit(Category.SPEED, "M", "Mach", new BigDecimal("343")))'

and change 'HORSEPOWER(new Unit(Category.WORK, "hp", "Horsepower", new BigDecimal("735.49875"))),'
to 'HORSEPOWER(new Unit(Category.WORK, "hp", "Horsepower", new BigDecimal("745.699872"))),'

Add to maven repo

really like the script - really helpful.
Can you add this to the main maven repo?

Speed convert for mile_per_hour is incorrect

the factor is incorrect, current is 0.4472271914, however, should be 0.44704
current:
MILES_PER_HOUR(new Unit(Category.SPEED, "mph", "Miles per hour", new BigDecimal("0.4472271914")))
should be : MILES_PER_HOUR(new Unit(Category.SPEED, "mph", "Miles per hour", new BigDecimal("0.44704")))

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.