     // MARK: Actions
     
     private func setState() {
-        if value.round1 >= maximumValue {
+        if value.rounded(numberFormatter.maximumFractionDigits) >= maximumValue {
             increaseButton.enabled = false
             increaseLayer.strokeColor = UIColor.grayColor().CGColor
             continuousTimer?.invalidate()
-        } else if value.round1 <= minimumValue {
+        } else if value.rounded(numberFormatter.maximumFractionDigits) <= minimumValue {
             decreaseButton.enabled = false
             decreaseLayer.strokeColor = UIColor.grayColor().CGColor
             continuousTimer?.invalidate()

// MARK: Double - Extension

extension Double {
    var round1: Double { return Double(round(100 * self) / 100) }
    var round2: Double { return Double(round(1000 * self) / 1000) }
}

    
    // Display the value with the
    private func setFormattedValue(value: Double) {
        valueLabel.text = numberFormatter.stringFromNumber(value)
    }
    
    // Update all the subviews tintColor properties.
