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

```scala import squants.market._ Money.parseString("1000 USD") // scala.NotImplementedError: an implementation is missing ```

As odd of a unit of measure as it is, my office actually has need of Kiloyards as a unit of measure quite regularly. I imagine this is just as...

`Bytes(Double.MaxValue / 2.0) == (Bytes(Double.MaxValue / 2.0) + Bytes(1.0))` will evaluate to `true` This happens because `Information`'s underlying type is `Double`. Not sure about reasons to choose this, it seems...

Since now it's possible to define our additional currencies, I expect to be able to create a new `Money` passing a currency code from the additional ones I added, like...

When a `Quantity` is converted to `String` on locales that use comma as a decimal separator (such as russian or french), the number is displayed differently depending on whether it's...

The following method do not compile because of the error display in comment below. Is there a way to fix this method without doing a `.asInstanceOf[Seq[T]]`? ```scala def test[T Seq(Celsius(3),...

Hello, We use Squants in our stack, which among other things drives liquid handling devices that take in a rate of change of VolumeFlow (i.e. volume/time^2 e.g. µL/sec^2). If we...

When you deal with money, there is a method ``` def /(that: BigDecimal): Money = new Money(amount / that)(currency) ``` that allows you to divide money by an arbitrarily large...

2.x

IMO, it shouldn't be easily possible to transform a Time value into another Time value that represents a different quantity. I accidentally wrote something analogous to the following in a...

2.x

This isn't ready to merge yet, it's just here for discussion. As discussed in the Gitter channel, there's a lot of copy/paste in the tests. There's also a lot of...