Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

How to trim Vectors?

Rock Ryder
Registered User
Join date: 6 Oct 2006
Posts: 384
09-23-2007 07:56
Hi,

I have a list variable:

list markers = [<0,0,0>];

When I use the following instruction:

llSay(0, (string)markers);

I get:

<0.000000,0.000000,0.000000>

Which when I have a list of 50 vectors takes up quite a bit of screen space. As all the vectors I will be using will only use integer values, not float, is there any way to force vectors to integer output when listed instead of float output?

Rock
Rock Ryder
Registered User
Join date: 6 Oct 2006
Posts: 384
09-23-2007 08:05
I understand, of course, that I can achieve what i want with a for loop, going through the list by index number, and casting each element as element.x element.y and element.z to integer, then to string, then combining them to produce a string output in the form <0,0,0>.

Just wondered if there was a simpler way, before I script it.

Rock
Seifert Surface
Mathematician
Join date: 14 Jun 2005
Posts: 912
09-23-2007 09:20
Nope, just write your own output function, as you've outlined.
_____________________
-Seifert Surface
2G!tGLf 2nLt9cG