Skip to content

Commit fadd39e

Browse files
authored
Merge pull request #42 from navinsubramani/Function_List
[Pranay] - Updated Numeric functions to Python syntax
2 parents 0515d9b + be9c7f0 commit fadd39e

File tree

6 files changed

+32
-2
lines changed

6 files changed

+32
-2
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
2+
\\ Examples of Arithmetic Operator
3+
a = 9
4+
b = 4
5+
6+
\\ Addition of numbers
7+
add = a + b
8+
9+
\\ Subtraction of numbers
10+
sub = a - b
11+
12+
\\ Multiplication of number
13+
mul = a * b
14+
15+
\\Division(float) of number
16+
div1 = a / b
17+
18+
\\Division(floor) of number
19+
div2 = a // b
20+
21+
\\Modulo of both number
22+
\\mod = a % b
23+
24+
\print results
25+
print(add)
26+
print(sub)
27+
print(mul)
28+
print(div1)
29+
print(div2)
30+
\\print(mod)

source code/LSL components/functions/functions list/Numeric Functions/Numeric Functions.lvclass

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.
Binary file not shown.

0 commit comments

Comments
 (0)