# FromDouble(double, TicksPerSecond)

> Converts a floating point number into a RationalTime with an explicit rate.

## Definition

* **Type:** Method
* **Namespace:** [Unity.IntegerTime](/engine/6000.6/script-reference/unity/integertime.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public static RationalTime FromDouble(double t, RationalTime.TicksPerSecond ticksPerSecond)
```

### Parameters

**** (\[double]\(https\://learn.microsoft.com/dotnet/api/system.double)): The duration in seconds.**** (\[TicksPerSecond]\(/engine/6000.6/script-reference/unity/integertime/rationaltime/tickspersecond)): The rational number representing the number of ticks per second.

### Returns

| Type                                                                              | Description |
| --------------------------------------------------------------------------------- | ----------- |
| [RationalTime](/engine/6000.6/script-reference/unity/integertime/rationaltime.md) |             |
