Difference between revisions of "Talk:Float"

From Second Life Wiki
Jump to navigation Jump to search
(Proposal how to expand this description short-term)
Line 4: Line 4:


: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. [[User:Strife Onizuka|Strife Onizuka]] 14:26, 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. [[User:Strife Onizuka|Strife Onizuka]] 14:26, 21 February 2007 (PST)
----
: I'd propose, as a first aid, copying the doc from [http://lslwiki.net/lslwiki/wakka.php?wakka=float lslwiki], where's some further information about this topic.
--[[User:Huney Jewell|Huney Jewell]] 03:08, 14 September 2007 (PDT)

Revision as of 03:08, 14 September 2007

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)