github.com/muratcelep/terraform@v1.1.0-beta2-not-internal-4/website/docs/language/functions/signum.html.md (about)

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