<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSCell/takeFloatValueFrom(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSCell(im)takeFloatValueFrom:"
  },
  "title" : "takeFloatValueFrom(_:)"
}
-->

# takeFloatValueFrom(_:)

Sets the value of the receiver’s cell to a single-precision floating-point value obtained from the specified object.

```
func takeFloatValueFrom(_ sender: Any?)
```

## Parameters

`sender`

The object from which to take the value. This object must implement the [`floatValue`](/documentation/AppKit/NSCell/floatValue) property.

## See Also

[`var floatValue: Float`](/documentation/AppKit/NSCell/floatValue)

The cell’s value as a single-precision floating-point number.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)