title: NumericUpDown to percentage then to hex
body: <p>I have a numericupdown control on my form. The value is 17, I need to store that number into a variable, then convert it to a percentage of 0-255, then convert it to hex.</p>
  
  <p>What I have: 17
  Where I need to get: ((17 / 100) * 256 ) - 1 = 42.52 which gets rounded to 43
  Then I need to convert that to hex: 43 = 2B</p>
  
  <p>What I don't know/understand.</p>
  
  <p>When I take in the value, what type of variable do I store it in ? string ? Int? double ?</p>
  
  <p>Can someone provide an example please.</p>
  
  <p>Thank you,
  James</p>