---
title: signum()
framework: swift
role: symbol
role_heading: Instance Method
path: swift/int128/signum()
---

# signum()

Returns -1 if this value is negative and 1 if it’s positive; otherwise, 0.

## Declaration

```swift
func signum() -> Self
```

## Return Value

Return Value The sign of this number, expressed as an integer of the same type.
