> ## Documentation Index
> Fetch the complete documentation index at: https://bazel-pr-29840.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# DottedVersion

A value representing a version with multiple components, separated by periods, such as 1.2.3.4.

## Members

* [compare\_to](#compare_to)

## compare\_to

```
int DottedVersion.compare_to(other)
```

Compares based on most significant (first) not-matching version component. So, for example, 1.2.3 \< 1.2.4

### Parameters

| Parameter | Description                                                                     |
| --------- | ------------------------------------------------------------------------------- |
| `other`   | [DottedVersion](../builtins/DottedVersion); required  The other dotted version. |
