# `GSFloatToFraction`

*Function*

## Declaration

```swift
func GSFloatToFraction(_ value: CGFloat, _ accuracy: CGFloat, _ numr: UnsafeMutablePointer<Int32>, _ dnom: UnsafeMutablePointer<Int32>) -> Bool
```

```objc
BOOL GSFloatToFraction(CGFloat value, CGFloat accuracy, int *numr, int *dnom);
```

```python
GSFloatToFraction(value: float, accuracy: float, numr: int, dnom: int) -> bool
```

## See Also

### Numeric Conversion and Rotation

- [`GSAngleToSlope`](/Core/GlyphsCore/GSAngleToSlope) — convert and angle (CCV from 12 o’clock) to run/rise as stored in the hhea table
- [`GSAngleFromString`](/Core/GlyphsCore/GSAngleFromString) — The angle of run/rise. This can be used to write the italic angle so the angle is positive CCV from 12 o’clock
- [`GSRotatePointAroundCenter`](/Core/GlyphsCore/GSRotatePointAroundCenter)
- [`GSRotatePoint`](/Core/GlyphsCore/GSRotatePoint)

