     public var maximumTextLength: Int?
     public var minimumTextLength: Int?
 
+    public var maximumValue: Double?
+    public var minimumValue: Double?
+
     var allowDecimalPoint: Bool = true
     var transformResult: ((text: String) -> AnyObject?)?
 

            return false
        }

        return false
    }

    public override func validate() throws {
        try super.validate()

        let result = checkTextLength()

        if !result.0 {
            throw FormViewableError(message: result.1)
        }

    }

    private func checkTextLength() -> (Bool, String) {


        return (true, "")
    }

    private func checkTextValues() -> (Bool, String) {
        guard let
            text = self.textField.text,
            textValue = Double(text)
        else {
            return (true, "")
        }

        if let
            minimumValue = self.minimumValue
            where textValue < minimumValue
        {
            return (false, "The value is too small for \(self.title)")
        } else if let
            maximumValue = self.maximumValue
            where textValue > maximumValue
        {
            return (false, "The value is long big for \(self.title)")
        }

        return (true, "")
    }
}
