Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
Sign()
[3/8]
static int System.Math.Sign
(
float
value
)
inline
static
Definition at line
1252
of file
Math.cs
.
1253
{
1254
if
(
value
< 0f)
1255
{
1256
return
-1;
1257
}
1258
if
(
value
> 0f)
1259
{
1260
return
1;
1261
}
1262
if
(
value
== 0f)
1263
{
1264
return
0;
1265
}
1266
throw
new
ArithmeticException(SR.Arithmetic_NaN);
1267
}
System.ExceptionArgument.value
@ value
References
System.SR.Arithmetic_NaN
, and
System.value
.
System
Math
Generated by
1.10.0