website tracking

Monday 18 May 2009

LSL Numbers and Operators

The second book in the Linden Script series for my level 3 students is now available in-world. The topics covered here are the various types of mathematical operator and number types used in LSL, which is going to be very reminiscent of those they should already be familiar with in Java, so I anticipate no real problem here. The numbers side looks at the types of numeric variable available in LSL, this is less than those in Java. The means by which we bring variables into existence through either declaration or initialisation is essentailly the same. One area they should feel familiar with is that of casting variable types, though now its almost exclusively in relation to the llSay function, at least as far as my exercises go anyway. I have also taken the opportunity to explore the use of constants such as PI illustrating through example. I have also taken the opportunity to explore the way in which different types of rounding function are applied. Hopefully all this is going to prove of use in the comming project.

No comments: