Difference between revisions of "Talk:Float"

From Second Life Wiki
Jump to navigation Jump to search
(Needs more information!)
 
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
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 all this myself but I don't yet have a clue).
== 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).<br/>
--[[User:Wilder Vallejo|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. [[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)
 
:: 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. -- [[User:Strife Onizuka|Strife Onizuka]] 01:02, 18 September 2007 (PDT)

Latest revision as of 00:02, 18 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)
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)