> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ShapeUnsignedToU16

> ShapeUnsignedToU16

# ShapeUnsignedToU16

Takes an unsigned 32-bit integer and returns the value in the upper 16 bits of an unsigned 32-bit integer.

## Syntax

```cpp theme={null}
UINT32 ShapeUnsignedToU16(  
         UINT32 value  
)  
```

### Parameters

*value*   \
Type: UINT32

An unsigned 32-bit integer.

### Return value

Type: UINT32

An unsigned 32-bit integer, with the input value in the upper 16 bits.

## Remarks

This function returns the value of an unsigned 32-bit integer in the upper 16 bits of an unsigned 32-bit integer.

To return the value in the upper 24 bits of an unsigned 32-bit integer, use [ShapeUnsignedToU24](/reference/audio/shapeeqcompcontext/functions/shapeunsignedtou24).

To return the value of a *signed* 32-bit integer in the upper 16 bits of an unsigned 32-bit integer, use [ShapeSignedToHighU16](/reference/audio/shapeeqcompcontext/functions/shapesignedtohighu16).

## Requirements

**Header:** shapeeqcompcontext.h

**Supported platforms:** XBOX One family consoles and XBOX Series consoles

## See also

[ShapeEqCompContext](/reference/audio/shapeeqcompcontext/shapeeqcompcontext_members)


## Related topics

- [ShapeUnsignedToU24](/reference/audio/shapeeqcompcontext/functions/shapeunsignedtou24.md)
- [ShapeEqCompContext](/reference/audio/shapeeqcompcontext/shapeeqcompcontext_members.md)
- [ShapeSignedFromU16_8](/reference/audio/shapeeqcompcontext/functions/shapesignedfromu16_8.md)
- [ShapeSignedToU16](/reference/audio/shapeeqcompcontext/functions/shapesignedtou16.md)
- [ShapeSignedToHighU16](/reference/audio/shapeeqcompcontext/functions/shapesignedtohighu16.md)
