| 1 |
--- |
| 2 |
title: math.Abs |
| 3 |
description: Returns the absolute value of the given number. |
| 4 |
categories: [] |
| 5 |
keywords: [] |
| 6 |
params: |
| 7 |
functions_and_methods: |
| 8 |
aliases: [] |
| 9 |
returnType: float64 |
| 10 |
signatures: [math.Abs VALUE] |
| 11 |
--- |
| 12 |
|
| 13 |
```go-html-template |
| 14 |
{{ math.Abs -2.1 }} → 2.1 |
| 15 |
``` |