I want to display the value of a slider into a label. The label is called rate and the slider is sliderrate, I tried this:
@IBAction func sliderValueChanged(_ sender: UISlider) {
rate.text = String(round(sliderrate.value))
}
As you can see I tried to round it in order to not display the decimals, but it's not working, I still have one decimal. Can someone help me please