> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinetica.com/llms.txt
> Use this file to discover all available pages before exploring further.

# compare_to

&#x20;compare\_to(other)[\[source\]](https://github.com/kineticadb/kinetica-api-python/blob/master/gpudb/gpudb.py#L5719)

Compares this version with another, build number included. (The comparison operators, ==, \< and >, compare the first four components only.)**Parameters**

other ([`GPUdb.Version`](https://docs.kinetica.com/content/api/python/source/gpudb#gpudb.GPUdb.Version) or str) –

The version to compare this one with.

**Returns**

-1 if this version is older, 1 if it is newer, 0 if the two are –the same, build number included.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.