squants
squants copied to clipboard
The Scala API for Quantities, Units of Measure and Dimensional Analysis
I tried adding Squants as a dependency to my build, as mentioned in the Squants documentation. Here is my build.sbt file: ``` ThisBuild / version := "0.1.0-SNAPSHOT" ThisBuild / scalaVersion...
Hey Guys, I know it's not an issue but just wanted to know if is it possible to create custom units in the library. E.g. i want to define new...
Converting a type to another type can affect the precision of the value. e.g. ``` Grams(5).in(Kilograms) // squants.mass.Mass = 0.005 kg Grams(5.1).in(Kilograms) // squants.mass.Mass = 0.0050999999999999995 kg (rather than 0.0051...
Sorry if this is not the place but I haven't found a community for asking this question. My use case is that I have "measurements" that could be either "units",...
I tried the library for dealing with some Forex and I was hitting a "Not Implemented Exception" where I was trying ti read That bhat (THB) into a CurrencyCenverter with...
Specific Energy is energy per unit mass of a chemical reaction. Its unit of measure is J/kg. This is not the same thing as a Gray which also a J/kg...
Quantity constructors taking String input are not tolerant of extra whitespace at beginning or end, such that `Volume("3 ml")` parses correctly but `Volume("3 ml ")` fails. It seems this could...
When using approximation on Money the following `UnsupportedOperationException("minus not supported for cross-currency comparison - use moneyMinus")` is raised. Is it possible to have a dedicated approximation function or update the...
Add tests to ensure that all types support basic JSON marshalling / serialization This may reveal the need (or desire) to create companion projects for specific JSON frameworks (ie, squants-json4s)
Would it make sense to add `hacktoberfest` tag to this project to participate to https://hacktoberfest.digitalocean.com ?