---
title: "abs"

doc_type: static
doc_category: static
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/sline/filter/abs'
  md: 'https://developer.shopline.com/docs/sline/filter/abs.md'
---

# abs


    Computes the absolute value of a number.

    



    
`number | abs()` returns an integer or a float.
    



    
        ## Required params

        
             `number` `integer`, `float`\: The number to compute the absolute value of.
        
    





    
## Example

        
            

            

            

            
<SlineExample path={'/'} objects={ 
    [""] 
}>
```sline
{{ -1 | abs() }}
```
</SlineExample>
            
        
    
