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

# Distance

> Integer type measured in dots in the FlexiLayout language for representing distances, with arithmetic, comparison operators, and an abs() method.

Integer type (measured in dots) that represents distances.

## Methods

| Method                     | Description                               |
| :------------------------- | :---------------------------------------- |
| `Distance abs( Distance )` | Returns the absolute value of a distance. |

## Operators

| Operator                         | Description                                                                                                                                                                                          |
| :------------------------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `-`                              | Changes the sign. Unary operator.                                                                                                                                                                    |
| `+`                              | Adds values of type Distance. Binary operator.                                                                                                                                                       |
| `-`                              | Subtracts values of type Distance. Binary operator.                                                                                                                                                  |
| `*`                              | Multiplies a value of type Distance by a value of type Int. Binary operator. Returns a value of type Distance.                                                                                       |
| `*`                              | Multiplies values of type Distance. Binary operator. Returns a value of type Area.                                                                                                                   |
| `/`                              | Divides a value of type Distance by a value of type Int. Binary operator. Returns a value of type Distance.                                                                                          |
| `<`, `<=`, `>`, `>=`, `==`, `!=` | Binary operators of comparison. Compare two values of type Distance: less than, less than or equal to, greater than, greater than or equal to, equal to, not equal to. Return a value of type Logic. |
