Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
Sign()
[2/8]
static int System.Math.Sign
(
double
value
)
inline
static
Definition at line
1207
of file
Math.cs
.
1208
{
1209
if
(
value
< 0.0)
1210
{
1211
return
-1;
1212
}
1213
if
(
value
> 0.0)
1214
{
1215
return
1;
1216
}
1217
if
(
value
== 0.0)
1218
{
1219
return
0;
1220
}
1221
throw
new
ArithmeticException(SR.Arithmetic_NaN);
1222
}
System.ExceptionArgument.value
@ value
References
System.SR.Arithmetic_NaN
, and
System.value
.
System
Math
Generated by
1.10.0