title: Reading and writing a floating point value to a NumericUpDown
body: <p>In C# I have a <a href="https://msdn.microsoft.com/en-us/library/system.windows.forms.numericupdown(v=vs.110).aspx" rel="nofollow">NumericUpDown</a> control that represents a floating point value, for example 2.3. It can be incremented and decremented by 0.1 from the user interface.</p>
  
  <p>However, this value can not be written or read programmatically, because it is an int in C#. I need to be able to read and write this float (or double) value.</p>
  
  <p>Currently the compiler is forcing me to cast it into an int and dropping the decimal places. This is a bug in C# obviously.</p>