You can add a Number or Integer parameter between the post-it and the
expression, that will convert the text into a number.

--
David Rutten
[email protected]
Robert McNeel & Associates


On Apr 6, 9:07 pm, Jahue <[email protected]> wrote:
> I figured as much, I havent had alot of time to work on it. The postit
> I simply added for the screen grab, so that is was clear that the
> function was working prior to the square root function.
>
> Thanks
>
> On Apr 6, 12:54 pm, taz <[email protected]> wrote:
>
> > Jahue,
>
> > Any data coming from a <Post-It> is a string type variable. You can
> > see this in your screengrab where the expression editor shows "x As
> > String".
>
> > Some components are smart enough to take <Post-It> data and
> > automatically convert it to the appropriate data type (if possible).
> > For instance you can have a number in a <Post-It> and use it to
> > specify the magnitude of a vector or a scale factor, etc.
>
> > The <1 Variable Function> component does not auto-convert any data
> > because expressions can be constructed with any incoming data type and
> > the user must check compatibility with the desired functions.  In your
> > particular case, the sqrt(x) function will only evaluate an integer or
> > a double.
>
> > -taz
>
> > On Apr 6, 11:41 am, Jahue <[email protected]> wrote:
>
> > > I have uploaded a screen grab of the problem(sqrtproblem.jpeg). You
> > > can see the value coming from the formula on the right is 51.0 and the
> > > formula on the right is open. It just gives me a error.
>
> > > Any ideas?
>
> > > On Apr 2, 4:59 pm, phildavis17 <[email protected]> wrote:
>
> > > > This sounds weird.  Could you post the file, or a screenshot of the
> > > > file?

Reply via email to