kactoos-jvm / nnl.rocks.kactoos.scalar / SumOfFloatScalar / <init>
SumOfFloatScalar(vararg scalars:
Scalar
<
Float
>)
SumOfFloatScalar(vararg scalars:
KScalar
<
Float
>)
SumOfFloatScalar(scalars:
Iterable
<
KScalar
<
Float
>>)
Float Scalar which sums up the values of other Scalars of the same type
Here is how you can use it to summarize float numbers:
val sum = SumOfFloatScalar({ 1f }, { 2f }, { 3f }).invoke()
There is no thread-safety guarantee.
scalars
- Scalars to sum up values from
Since 0.4