INFINITY constant
Chaser Zaks
Very simple request, a infinity constant.
"INFINITY" { count(); yylval.fval = INFINITY; return(FP_CONSTANT); }
Support for negative infinity is implied by doing
-INFINITY
Log In
Lucia Nightfire
Does (float)"inf" and (float)"-inf" not work?
Chaser Zaks
Lucia Nightfire It does, but that comes at the cost of having to convert a string to a float.
.locals init (float32)
ldc.r8 (00 00 00 00 00 00 f0 7f)
stloc.s 0
vs
.locals init (float32)
ldstr "inf"
call float32 [LslLibrary]LindenLab.SecondLife.LslRunTime::StringToFloat(string)
stloc.s 0