Category talk:LSL Float - Second Life Wiki

Category talk:LSL Float

From Second Life Wiki

Second Life Wiki > > Category talk: LSL Float
Jump to: navigation, search

Something Seems Off

Simple Script

 
default
{
    state_entry()
    {
        llOwnerSay((string)((float)"3.402823466E+38"));
    }
}
 

In Mono It Says: 340282300000000000000000000000000000000.000000

In LSL Is Says: 340282346638528859811704183484516925440.000000

Shouldn't Both Give The Same? Adi 20:51, 15 July 2009 (UTC)

You can report it as a bug on Jira. The two values are however identical when read as floats. It's a feature of floating point precision types; the precision is at the top, not the bottom of the value. -- Strife (talk|contribs) 20:30, 17 July 2009 (UTC)