Coder Social home page Coder Social logo

tonypilz / units Goto Github PK

View Code? Open in Web Editor NEW
17.0 4.0 2.0 174 KB

A lightweight compile-time, header-only, dimensional analysis and unit conversion library built on c++11 with no dependencies

License: BSD 3-Clause "New" or "Revised" License

QMake 0.67% C++ 99.20% C 0.13%
dimensional-analysis unit-conversion compile-time units-of-measure header-only no-dependencies cpp11 single-file

units's People

Contributors

tonypilz avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

Forkers

mkalte666 tibbel

units's Issues

Compatibility for embedded systems

Greetings,

I was searching for a lib that only needs c++11 (RTOS we are using forces me to that standard atm) and and i came across this one.

So far it looks good ; however on the embedded system i do not have access to streams, and i also am happy with float precision. That resulted in a few edits to units.h: mkalte666@55b53a4

This allows me to compile (in my case with -DUNIT_NO_STREAMS -DUNIT_BASETYPE=float)

I suggest to add this functionality to this lib.

I hope you have a nice day :D

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.