---
title: "NSRoundDownToMultipleOfPageSize(_:)"
framework: foundation
role: symbol
role_heading: Function
path: "foundation/nsrounddowntomultipleofpagesize(_:)"
---

# NSRoundDownToMultipleOfPageSize(_:)

Returns the specified number of bytes rounded down to a multiple of the page size.

## Declaration

```swift
func NSRoundDownToMultipleOfPageSize(_ bytes: Int) -> Int
```

## Return Value

Return Value In bytes, the multiple of the page size that is closest to, but not greater than, byteCount (that is, the number of bytes rounded down to a multiple of the page size).

## See Also

### Memory Management

- [NSAllocateMemoryPages(_:)](foundation/nsallocatememorypages(_:).md)
- [NSCopyMemoryPages(_:_:_:)](foundation/nscopymemorypages(_:_:_:).md)
- [NSDeallocateMemoryPages(_:_:)](foundation/nsdeallocatememorypages(_:_:).md)
- [NSLogPageSize()](foundation/nslogpagesize().md)
- [NSPageSize()](foundation/nspagesize().md)
- [NSRealMemoryAvailable()](foundation/nsrealmemoryavailable().md)
- [NSRoundUpToMultipleOfPageSize(_:)](foundation/nsrounduptomultipleofpagesize(_:).md)
