---
url: /cube-functions/right.md
description: >-
  Returns a portion of the input string for an input number of characters
  starting from the right.
---

# RIGHT

Returns a portion of the input string for an input number of characters starting from the right.

```js
RIGHT(input_string, length)
```

#### Parameters

* `input_string` - The string input.
* `length` - The number of characters to keep.

#### Examples

```js
RIGHT("Hello World", 5)
```

**Result:** `World`
