<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/keras-team/keras/tree/v3.15.1/keras/src/backend/config.py#L26-L41) |

Return the default float type, as a string.

#### View aliases


**Main aliases**

[`tf.keras.config.floatx`](https://www.tensorflow.org/api_docs/python/tf/keras/backend/floatx)

<br />

    tf.keras.backend.floatx()

E.g. `'bfloat16'`, `'float16'`, `'float32'`, `'float64'`.

<br />

<br />

<br />

| ## Returns ||
|---|---|
| String, the current default float type. ||

<br />

#### Example:

    keras.config.floatx()
    'float32'