---
title: "init(_:)"
framework: corefoundation
role: symbol
role_heading: Initializer
path: "corefoundation/cgfloat-swift.struct/init(_:)-99gmf"
---

# init(_:)

Creates a new value, rounded to the closest possible representation.

## Declaration

```swift
init(_ number: NSNumber)
```

## Parameters

- `number`: The number to convert to a floating-point value.

## Discussion

Discussion If two representable values are equally close, the result is the value with more trailing zeros in its significand bit pattern.
