I have a previous VB subroutine (with a iterative mathematical calculation) which I would like to put into a plug-in for use with SMath Studio. I have started with the VB.net plug-in template and have a function started which passes the starting values from a smath worksheet to the plug-in. I have gotten so far as the values from the worksheet are transfered to the plug-in as TNumber objects. I need to convert the values from TNumber to Single or Double VB numbers to pass them to the subroutine (the subroutine uses single and doubles in the calculations). Is there a way to convert between TNumber and Single or double and then back again in VB code?
Thanks,
Engr