# BasicLabelFormatter

[View Source](https://github.com/material-components/material-components-android/blob/1.14.0/lib/java/com/google/android/material/slider/BasicLabelFormatter.java)

*** ** * ** ***


```
public final class BasicLabelFormatter implements LabelFormatter
```

<br />

*** ** * ** ***

A simple implementation of the `https://developer.android.com/reference/com/google/android/material/slider/LabelFormatter` interface, that limits the number displayed inside a discrete slider's bubble to three digits, and a single-character suffix that denotes magnitude (e.g.: 1.5K, 2.2M, 1.3B, 2T).

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/com/google/android/material/slider/BasicLabelFormatter#BasicLabelFormatter()()` |

| ### Public methods |
|---|---|
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/com/google/android/material/slider/BasicLabelFormatter#getFormattedValue(float)(float value)` |

| ### Inherited Constants |
|---|
| From [com.google.android.material.slider.LabelFormatter](https://developer.android.com/reference/com/google/android/material/slider/LabelFormatter) |---|---| | `static final int` | `https://developer.android.com/reference/com/google/android/material/slider/LabelFormatter#LABEL_FLOATING() = 0` | | `static final int` | `https://developer.android.com/reference/com/google/android/material/slider/LabelFormatter#LABEL_GONE() = 2` | | `static final int` | `https://developer.android.com/reference/com/google/android/material/slider/LabelFormatter#LABEL_VISIBLE() = 3` | | `static final int` | `https://developer.android.com/reference/com/google/android/material/slider/LabelFormatter#LABEL_WITHIN_BOUNDS() = 1` | |

## Public constructors

### BasicLabelFormatter

```
public BasicLabelFormatter()
```

## Public methods

### getFormattedValue

```
public String getFormattedValue(float value)
```