thanks vivose. i'll try that.
On Dec 18, 11:46 am, visose <[email protected]> wrote: > You can connect the note component to a double or integer parameter > and connect that parameter to the expression component. > Usually the data will try to be converted to whatever the input needs, > but since expression component can read different data types, > including strings, it doesn't get converted in this case. > > On Dec 18, 2:53 pm, opposablethumbs <[email protected]> wrote: > > > ah, ok. > > > i wonder if it would be a good request to be able to change the > > properties of a note to a string, integer, or float? > > it might seem kind of pointless, but to a noob i think it would be > > kind of nice, I like to get as much exposed to me as possible so I can > > "see" what is going on. > > > thanks for your help > > > On Dec 17, 5:03 pm, Dimitrie <[email protected]> wrote: > > > > i do believe that notes output string variables, not doubles or floats > > > (even if you passed them as input, there's an automatic conversion > > > going on), so what you were actually passing into the round function > > > was a string... > > > > On Dec 17, 9:39 pm, opposablethumbs <[email protected]> wrote: > > > > > ah man, i had the function right all along then! > > > > i had the result of a function going into a note, then taking the > > > > output of the note into a function component and doing the round. > > > > it wasn't taking the note value as X in the function. > > > > >http://groups.google.com/group/grasshopper3d/web/functionWithNoteInpu... > > > > > i bypassed the note and it works fine. > > > > why is that? > > > > thanks. > > > > > On Dec 17, 2:17 pm, Dimitrie <[email protected]> wrote: > > > > > > round(number_you_want_to_round, how_many_decimals_you_want_to_have) > > > > > hope it helps. > > > > > > On Dec 17, 7:26 pm, opposablethumbs <[email protected]> wrote: > > > > > > > can anyone help me out with the syntax? > > > > > > i can't tell what is supposed to be in the brackets. > > > > > > > i want it to round and limit the decimel places out to the > > > > > > thousandth's. > > > > > > > thanks.
