# Promote with "minimum" type

**URL:** <https://discourse.julialang.org/t/promote-with-minimum-type/68464>\
**Category:** General Usage\
**Created:** [September 20, 2021, 1:42pm UTC](https://discourse.julialang.org/t/promote-with-minimum-type/68464 "2021-09-20T13:42:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![markmbaum](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/markmbaum/32/32745_2.png) [@markmbaum](https://discourse.julialang.org/u/markmbaum)\
**Post date:** [September 20, 2021, 1:42pm UTC](https://discourse.julialang.org/t/promote-with-minimum-type/68464/1 "2021-09-20T13:42:19Z")

</div>

Is there a particular way to promote a group of variables while specifying a “minimum” type? For example, I find myself using

```julia
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`.

---

<div class="post-metadata">

**Author:** ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)\
**Post date:** [September 20, 2021, 1:50pm UTC](https://discourse.julialang.org/t/promote-with-minimum-type/68464/2 "2021-09-20T13:50:10Z")

</div>

just use `float()`?
