Git Product home page Git Product logo

digidemic / unitof Goto Github PK

View Code? Open in Web Editor NEW
71.0 7.0 14.0 1.64 MB

A measurement and data type conversion library for Java, JavaScript and C#

Home Page: https://digidemic.github.io/UnitOf/

License: Other

C# 33.37% Java 30.61% JavaScript 34.65% CSS 0.20% HTML 1.17%
measurements units parser datatype metric imperial converter units-of-measure units-of-measurement units-measures-converter

unitof's People

Contributors

digidemic 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  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  avatar  avatar  avatar  avatar

unitof's Issues

#equals?

Hello! I was messing with the library (was very surprised to see hands as a length unit :P) and realized that the units can't be compared to each other using the equals method. Is this intended?

How to Use in Android Studio

Is there a line that can be used in build.gradle as an implementaion to use this in my Android Studio Project? Android Studio Artic Fox 2020.3.1 Thanks!

Feature Request: Convert Between Anything to another Unit

Hello,

I was playing around with your library and found it really useful. I am working on a small application and got stuck in a place where I want to add a "missing conversion" to an existing UnitOf object. I am aware that it is possible to just create a unit in the Anything class but how would I be able to convert it to an existing unit. For example, I want to add 100 Liters per Kilometer to the FuelEconomy object. it would be great if I would be able to have it convert to MPG or KPL. Is this possible and am I missing something? If not, is there a solution to this issue that I am facing?

Thank you very much!

Inclusion of Milliampere Hours

It seems weird that we are missing Milliampere Hours in the Electric Charge Unit Conversions.
Although it's an easy conversion, it's used daily when we are talking about Smartphone and laptop batteries.
Because of the reason that I just mentioned, I think it should be included in the Electric Charge Category.

why obfuscated?

I wanted to inspect and validate one of the conversion functions, but noticed at least the java implementation is obfuscated. It's definitely unhelpful for me, and it seems odd to do this for an open source project. Maybe consider not doing that unless there's a good reason.

Maven artifact

Any plans to add it to maven repository guys? So that we can take advantage of the build system like maven and gradle

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.