title: UDF Methods For Determining Currency or Double
body: <p>I'm creating a <code>UDF</code> in <code>VB.NET</code> that sometimes works with <code>currency</code>, which I would need to use the <code>Decimal</code> format in <code>VB</code>. But sometimes I working with <code>time</code> or just a plain <code>double</code>. What methods are out their for determining how I should add the values up, with a <code>decimal</code> or <code>double</code>? </p>
  
  <p>I prefer not to have excel return the actual range for simplicity sake but will do if I need to determine if it is formatted as currency.</p>