Is there a particular way to promote a group of variables while specifying a “minimum” type? For example, I find myself using
x, y, _ = promote(x, y, 1.0)
to ensure that x
and y
have the same type and that the type is at least Float64
.
Is there a particular way to promote a group of variables while specifying a “minimum” type? For example, I find myself using
x, y, _ = promote(x, y, 1.0)
to ensure that x
and y
have the same type and that the type is at least Float64
.
just use float()
?