github.com/hugorut/terraform@v1.1.3/website/docs/language/functions/signum.mdx (about)

     1  ---
     2  page_title: signum - Functions - Configuration Language
     3  description: The signum function determines the sign of a number.
     4  ---
     5  
     6  # `signum` Function
     7  
     8  `signum` determines the sign of a number, returning a number between -1 and
     9  1 to represent the sign.
    10  
    11  ## Examples
    12  
    13  ```
    14  > signum(-13)
    15  -1
    16  > signum(0)
    17  0
    18  > signum(344)
    19  1
    20  ```