Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;General Math
- ;ABS
- 1::
- ;Value := Abs(Number)
- MsgBox, % Abs(-1.2) ; Returns 1.2
- return
- ;Ceil
- 2::
- ;Value := Ceil(Number)
- MsgBox, % Ceil(1.2) ; Returns 2
- MsgBox, % Ceil(-1.2) ; Returns -1
- return
- ;Floor
- 3::
- ;Value := Floor(Number)
- MsgBox, % Floor(1.2) ; Returns 1
- MsgBox, % Floor(-1.2) ; Returns -2
- return
- ;Exp
- 4::
- ;Value := Exp(N)
- MsgBox, % Exp(1.2) ; Returns 3.320117
- return
- ;log
- 5::
- ;Value := Log(Number)
- MsgBox, % Log(1.2) ; Returns 0.079181
- return
- ;Max
- 6::
- ;Value := Max(Number1 , Number2, ...)
- MsgBox, % Max(2.11, -2, 0) ; Returns 2.11
- return
- ;min
- 7::
- ;Value := Min(Number1 , Number2, ...)
- MsgBox, % Min(2.11, -2, 0) ; Returns -2
- return
- ;MOD
- 8::
- ;Value := Mod(Dividend, Divisor)
- MsgBox, % Mod(7.5, 2) ; Returns 1.5 (2 x 3 + 1.5)
- return
- ;ROUND
- 9::
- ;Value := Round(Number , N)
- MsgBox, % Round(3.14) ; Returns 3
- MsgBox, % Round(3.14, 1) ; Returns 3.1
- return
- ;SQRT
- 0::
- ;Value := Sqrt(Number)
- MsgBox, % Sqrt(16) ; Returns 4
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement