aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs/content/en/functions/math/Abs.md
blob: 682b8426f2587292f13494955dc559266fff48cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
---
title: math.Abs
description: Returns the absolute value of the given number.
categories: []
keywords: []
action:
  aliases: []
  related: []
  returnType: float64
  signatures: [math.Abs VALUE]
---

{{< new-in 0.112.0 >}}

```go-html-template
{{ math.Abs -2.1 }} → 2.1
```