Chapter 13 Device Logic (Pawn)
13.2.9 Math
Definition
Value
Description
M_E
2.7182818284590452354
e
M_LOG2E
1.4426950408889634074
log
2
e
M_LOG10E
0.43429448190325182765
log
10
e
M_LN2
0.69314718055994530942
ln 2
M_LN10
2.30258509299404568402
ln 10
M_PI
3.14159265358979323846
π
M_PI_2
1.57079632679489661923
π/2
M_PI_4
0.78539816339744830962
π/4
M_1_PI
0.31830988618379067154
1/π
M_2_PI
0.63661977236758134308
2/π
M_2_SQRTPI
1.12837916709551257390
2/sqrt(π)
M_SQRT2
1.41421356237309504880
sqrt(2)
M_SQRT1_2
0.70710678118654752440
1/sqrt(2)
Helpful constants
native fround(Float:x);
Commercially rounds the transferred float
Parameter
Explanation
x
Float that should be rounded
Explanation
Return value
Commercially rounded integral value
native min(value1, value2);
Supplies the smaller of the two transferred values
Parameter
Explanation
value1
Two values of which the smaller one is to be determined
value2
Explanation
Return value
The smaller of the two transferred values
Rev. 05
169
Summary of Contents for myDatalogEASY V3
Page 2: ......
Page 13: ...Chapter 2 Declaration of conformity Chapter 2 Declaration of conformity Rev 05 13 ...
Page 14: ......
Page 42: ......
Page 76: ......
Page 88: ......
Page 102: ......
Page 110: ......
Page 116: ......
Page 234: ......
Page 244: ......
Page 252: ......
Page 254: ......
Page 266: ......
Page 276: ......