Talk:Float

From Second Life Wiki
Jump to navigation Jump to search

Needs More Information

This should have more information. In particular, what's the syntax for specifying a float? Are there constants for the smallest possible and largest possible floats? Does the type support full IEEE operation (including INF, -INF, NAN, etc.)? Does LSL automatically promote integers to floats in a float expression? What about conversion to/from strings, etc.? (I'd add all this myself but I don't yet have a clue).
--Wilder Vallejo 14:04, 21 February 2007 (PST)

I'll write a more detailed article later (working on functions etc). LSL does use IEEE floats but it does not support any of the interesting features of the standard, specifically INF or NAN. for string->float typecasting it supports hex, hex floats and scientific notation and regular notation. The LSL compiler only supports regular and scientific notation. Strife Onizuka 14:26, 21 February 2007 (PST)

I'd propose, as a first aid, copying the doc from lslwiki, where's some further information about this topic.
--Huney Jewell 03:08, 14 September 2007 (PDT)
Content cannot be copied from the LSLWiki without express permission from all authors of the content being copied. The licenses are incompatible. It's a legal issue. -- Strife Onizuka 01:02, 18 September 2007 (PDT)