---
title: "GETBITS"
description: "GETBITS, GETBITS(integer, bitstartpos, length); GETBIT"
keywords: "GETBITS, GETBITS(integer, bitstartpos, length); GETBIT"
url: "https://myrapidi.com/wiki/getbits"
locale: "en"
published: "2009-05-15T08:02:06Z"
modified: "2023-09-18T08:13:38Z"
---

## GETBITS(integer, bitstartpos, length);

**Example:**

> ##GETBITS("NUM", 5, 3)  
> If "NUM" has the value "01100101" (binary data) it will return the result "101".
