Skip to contents

same_quantum() tests whether x and y have the same shared vector scale. Scale is a vector-level property in this package, so every recycled element comparison receives the same result.

Usage

same_quantum(x, y)

Arguments

x, y

Decimal-compatible vectors.

Value

A logical vector with the common recycled size of x and y.

Examples

same_quantum(decimal("1.00"), decimal("2.0"))
#> [1] FALSE