squants icon indicating copy to clipboard operation
squants copied to clipboard

The Scala API for Quantities, Units of Measure and Dimensional Analysis

Results 73 squants issues
Sort by recently updated
recently updated
newest added

First real attempt at a PR here for Squants (or much of anything for that matter). Trying to be helpful, so please be gentle ;-) See issue #298 Thanks and...

Adds classes to represents quantities that are the time derivative of VolumeFlow i.e. volume per time per time. (We find these useful for, among other things, driving liquid handling devices...

Hello! We've hit some problems in our code when defining a currency in one of our base traits: ```scala trait ConvenientStuffWeUseEverywhere { object OurCurrency extends squants.market.Currency(...) } class ServiceA extends...

Does the library take advantage of Scala's value type (AnyVal) support?

Money round-trip parsing via `toString` is failing in 1.4.0. Worked in 1.3.0. ```scala import squants.market._ val money = Money(1000d, USD) // money: squants.market.Money = 1E+3 USD Money(money.toString) // scala.util.Try[squants.market.Money] =...

Hi, I'm trying to tweak the MoneyContext but being a case class make it really hard. Could we create an abstraction ?

2.x

``` import scala.language.postfixOps import squants.energy.EnergyConversions._ import squants.energy.PowerConversions._ import squants.information.InformationConversions._ import squants.market.MoneyConversions._ import squants.space.LengthConversions._ import squants.time.TimeConversions._ val price = 1.USD / 1.kWh val energy = 4.MWh val works = price *...

I'd be happy to tackle this but wanted to run it by others first. I'm primarily wanting: Weeks (28 days), Months (30 days), Years, GregorianYears. Others that I may include...

Related to https://github.com/typelevel/squants/issues/231 Why do we need a money context if we are in the same currency? Couple of ways to solve this: 1. Type safe approach: We can make...

enhancement