title: How can I restrict iOS slider value to an integer?
body: <p>I have a horizontal <code>UISlider</code> to control the volume from 1 to 16 as min and max value, but it's returning float values when I do <code>print()</code>.</p>
  <p>How can I restrict the UISlider value to an integer?</p>
  <pre><code>@IBOutlet var ringValue: UISlider!
  
  @IBAction func ringVolumeSliderChange(_ sender: UISlider)
  {
      print(sender.value)
  }
  </code></pre>