     
     weak var delegate: SDNumberField?
     
+    let label = UILabel()
+    
     var old_value: String?
     
     override func viewDidLoad() {
         super.viewDidLoad()
         
         view.backgroundColor = delegate?.keyboardBackgroundColor
+        
+        label.text = delegate?._text
+        label.textAlignment = .right
+        label.adjustsFontSizeToFitWidth = true
         
         var buttons: [UIButton] = []
         

            return Decimal(string: _text).map { CGFloat(NSDecimalNumber(decimal: $0).doubleValue) } ?? 0
        }
        set {
            _text = "\(Decimal(Double(newValue)))"
        }
    }
    
    @IBInspectable open var isDecimal: Bool = true
    

            delegate.sendActions(for: .editingChanged)
        }
        
        label.text = delegate._text
        delegate.sendActions(for: .editingDidEnd)
    }
}
