Comments (1)
Hi @flipmokid
Your first question has now been answered by the FAQ section on the readme.
The answer to your second question is to that you need a unit for density. (which I've just added a couple of in 44cc78b)
Then you define a constant with the density of your liquid. According to google, the density of water is about 997 kg/m³ (at 25°C). So that could be defined like this:
(def water-density-at-25C (b/kilograms-per-cubic-meter 997))
; then you could do your calculations with it
(b/* water-density-at-25C (b/liters 300))
; => #broch/quantity[299.1 "kg"]
from broch.
Related Issues (13)
- Encoding / decoding HOT 5
- Expose functions for custom arithmetic fn HOT 3
- CLJS and decimals HOT 3
- Syntax error (ClassNotFoundException) compiling at (broch/numbers.cljc:170:4). cljs.compiler HOT 2
- Units symbol not registered in CLJS HOT 4
- Implementation of SQRT HOT 2
- Converts to ratio
- UOM conversion that requires a lookup HOT 1
- Fix cljdoc HOT 1
- Converting of nil quantity is undefined
- Clojure-LSP doesn't seem to find `broch.core/meters` HOT 3
- Thoughts on the future of currently unsupported units? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from broch.