Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Sign() [3/8]

static int System.Math.Sign ( float value)
inlinestatic

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 }

References System.SR.Arithmetic_NaN, and System.value.