21 May
2010
21 May
'10
11:49 a.m.
Tom;
A different question I now have is, how do I convert a float to a string? Haven’t been able to find this in the documentation/examples… :(
Strangely casting doesn't work (I feel it should). This works though;
3 => float foo;
string bar;
foo +=> bar;
<<<bar>>>;
That's more or less a implicit cast.
We can also make it a bit nicer and create a function that you could use
inside of the creation of your OSC messages;
//Float TO String converter
fun string ftos(float arg)
{
string bar;
arg +=> bar;
return bar;
}
//trivial test
<<