---
title: max()
framework: createml
role: symbol
role_heading: Instance Method
path: createml/mldatacolumn/max()
---

# max()

Returns the element with the highest value in a column of doubles.

## Declaration

```swift
func max() -> Double?
```

## Return Value

Return Value A Double; otherwise nil if the column is empty or invalid.

## See Also

### Getting the min and max element values

- [min()](createml/mldatacolumn/min().md)
