Strings representing denormals no longer give 0 when cast to float
This annoyance and discrepancy with LSO was finally fixed by Linden Lab. The change has prompted some modifications to the test suite to accommodate for the new results. A further improvement has been to make these tests more friendly to be run in SL, making it easier to verify the results. Fixes #17. Reported by SaladDais@users.noreply.github.com - thanks!
This commit is contained in:
@@ -27,13 +27,12 @@
|
||||
, (float)"-3.14e+0a"
|
||||
, (float)"--3.14e+0a"
|
||||
, (float)"0x3.14p+0a"
|
||||
, (float)"1.1754944e-38"
|
||||
, (float)"1.1754943e-38"
|
||||
, (float)"1.1754942e-38"
|
||||
, (float)"1.1754943157898258346e-38"
|
||||
, (float)"1.17549431578982583459e-38"
|
||||
// Known Mismatch:
|
||||
//, (float)"1.175494315789825834599e-38" // should give 0 but it fails
|
||||
, (float)"1.1754944e-38"*85070591730234615865843651857942052864.*16777216.
|
||||
, (float)"1.1754943e-38"*85070591730234615865843651857942052864.*16777216.
|
||||
, (float)"1.1754942e-38"*85070591730234615865843651857942052864.*16777216.
|
||||
, (float)"1.1754943157898258346e-38"*85070591730234615865843651857942052864.*16777216.
|
||||
, (float)"1.17549431578982583459e-38"*85070591730234615865843651857942052864.*16777216.
|
||||
, (float)"1.175494315789825834599e-38"*85070591730234615865843651857942052864.*16777216.
|
||||
, (vector)"<5.31,7.13,0x9.99"
|
||||
, (vector)"<5.31, 7.13, 0x9.99>"
|
||||
, (vector)"<5.31 , 7.13 , 0x9.99>"
|
||||
@@ -125,13 +124,14 @@
|
||||
, (string)(1e39*0)
|
||||
, llList2CSV([1e0,1e1,1e2,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13,1e14,
|
||||
1e15,1e16,1e17,1e18,1e19,1e20,1e21,1e22,1e23,1e24,1e25,1e26,1e27,
|
||||
1e28,1e29,1e30,1e31,1e32,1e33,1e34,1e35,1e36,1e37,1e38])
|
||||
1e28,1e29,1e30,1e31,1e32,1e33,1e34])
|
||||
, llList2CSV([1e35,1e36,1e37,1e38])
|
||||
, llList2CSV((list)<(float)"NaN", 1e40*0, 1e40, -1e40>)
|
||||
, llList2CSV((list)"str")
|
||||
, (string)[1,3.14,(key)"blah",<1.,0.,0.,0.>]
|
||||
, llSin(-2147483648)
|
||||
, llSin(2147483647)
|
||||
, llSin(2147483647.0)
|
||||
, llSin(-2147483648)*128
|
||||
, llSin(2147483647)*128
|
||||
, llSin(2147483647.0)*128
|
||||
, 2147483647 * 1.0 * 2
|
||||
, 3 * 1.0 / 2
|
||||
, 3 / 2
|
||||
|
||||
Reference in New Issue
Block a user