# abs, round, floor, ceil in Jira Automation: syntax, examples

URL: https://goingstellar.ro/reference/smart-values/abs-round-floor-ceil/

Four number helpers: abs drops the minus sign, round goes to the nearest whole number, floor goes down and ceil goes up. Use them after a calculation, for example to show how far a value is from a target without a sign.

## Syntax

```
{{number.abs}}
{{number.round}}
{{number.floor}}
{{number.ceil}}
{{#=}}ROUND(expression, digits){{/}}
```

## Arguments

- `digits` (required: no): Number of decimals to keep, only for ROUND() inside a math expression

## Works on

- Numbers: a number field, or the result of length(), size, plus(), minus(), divide()
- Returns: a number

## Examples

```
{{issue.summary.length().minus(20).abs}}
```

Show how far a summary is from a 20 character limit, whether it is under or over.

Result:

```
8
```

Run on Jira Cloud on 29 Nov 2026.

```
{{issue.summary.length().minus(20)}}
```

The same subtraction without abs keeps the sign, which tells you the direction.

Result:

```
-8
```

Run on Jira Cloud on 29 Nov 2026.

```
{{#=}}ABS(-6){{/}}
```

The function form inside a math expression.

Result:

```
6
```

Run on Jira Cloud on 29 Nov 2026.

```
{{#=}}ROUND(2.567, 1){{/}}
```

Round to one decimal, which the dotted round does not offer.

Result:

```
2.6
```

Run on Jira Cloud on 29 Nov 2026.

```
{{#=}}FLOOR(1.9){{/}}
```

Round down, for example to count complete pages.

Result:

```
1
```

Run on Jira Cloud on 29 Nov 2026.

```
{{#=}}CEILING(1.1){{/}}
```

Round up, for example to count the pages needed.

Result:

```
2
```

Run on Jira Cloud on 29 Nov 2026.

## Pitfalls

- After `divide()` on whole numbers the fraction is already gone: with a summary of Hello World! (12 characters) `length().divide(5)`, `.round`, `.floor` and `.ceil` all give 2 (checked on Jira Cloud, November 2026). Round inside `{{#=}}` instead.
- The function is CEILING in a math expression but `ceil` as a dotted smart value.
- On a field without a value the chain prints an empty string, so a comment can end up with a gap where the number should be.

## Related

- [{{#=}} math expressions](https://goingstellar.ro/reference/smart-values/math-expressions/)
- [plus(), minus(), multiply(), divide() on numbers](https://goingstellar.ro/reference/smart-values/plus-minus-multiply-divide/)
- [format() and formatWithLocale()](https://goingstellar.ro/reference/smart-values/number-format/)
- [gt(), gte(), eq(), lt(), lte()](https://goingstellar.ro/reference/smart-values/number-comparisons/)

## Sources

- [Jira smart values: math expressions (Atlassian Support)](https://support.atlassian.com/cloud-automation/docs/jira-smart-values-math-expressions/)

