# `TDToken initWithTokenType:stringValue:floatValue:`

*Initializer*

## Declaration

```swift
init!(tokenType t: TDTokenType, stringValue s: String!, floatValue n: CGFloat)
```

```objc
- (instancetype) initWithTokenType:(TDTokenType) t stringValue:(NSString *) s floatValue:(CGFloat) n;
```

```python
initWithTokenType_stringValue_floatValue_(t: TDTokenType, s: str, n: float) -> TDToken
```

## Parameters

- `t` — The type of this token.
- `s` — The string value of this token.
- `n` — The number falue of this token.

## Return Value

An autoreleased initialized token.

## Discussion

Designated initializer. Constructs a token of the indicated type and associated string or numeric values.

