# How can I test for v"0.4.x"?

**URL:** <https://discourse.julialang.org/t/how-can-i-test-for-v-0-4-x/107084>\
**Category:** General Usage\
**Tags:** versions\
**Created:** [December 3, 2023, 9:11pm UTC](https://discourse.julialang.org/t/how-can-i-test-for-v-0-4-x/107084 "2023-12-03T21:11:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![GHTaarn](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ghtaarn/32/216007_2.png) [@GHTaarn](https://discourse.julialang.org/u/GHTaarn)\
**Post date:** [December 3, 2023, 9:11pm UTC](https://discourse.julialang.org/t/how-can-i-test-for-v-0-4-x/107084/1 "2023-12-03T21:11:05Z")

</div>

I would like to test if a `VersionNumber` is 0.4.x or less.

```julia
v"0.4.1" <= v"0.4"

```

returns `false`

Is

```julia
x < v"0.5.0-DEV"

```

the best way to do this, (and would it be guaranteed to work)?

---

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [December 3, 2023, 9:25pm UTC](https://discourse.julialang.org/t/how-can-i-test-for-v-0-4-x/107084/2 "2023-12-03T21:25:30Z")

</div>

> [@GHTaarn](#):
>
> I would like to test if a `VersionNumber` is 0.4.x or less.

`version < v"0.5-"`
