Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.


Julian
Posts:
93
Registered:
12/6/04


Re: how to make "get" only one number not array
Posted:
Mar 20, 2012 7:39 AM


dpb <none@non.net> wrote in message <jk87j5$ou$2@speranza.aioe.org>... > On 3/19/2012 3:10 PM, Dustin Sondenaa wrote: > > I am using guide to calculate some stuff and I am having an issue. When > > Diameter is larger than 9 this sets it equal to two numbers (IE 10 would > > be 1 0) so when I try to input it as a function it's taking it as an > > array and trying to compute two values. How can I change this code so if > > there is a 2 or 3 digit number it takes it as one number and not separate? > > > > Diameter1 = get(handles.Diameter1,'String') > > Diameter2 = get(handles.Diameter2,'String') > > Diameter3 = get(handles.Diameter3,'String') > > Diameter4 = get(handles.Diameter4,'String') > > Diameter5 = get(handles.Diameter5,'String') > > doc str2num % maybe? > > 
Wow I can't believe I missed that. Thank you



