FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
lpython/tests/expr8.py at main · TutuBinary/lpython · GitHub
TutuBinary
/
lpython
Public
forked from
lcompilers/lpython
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
lpython
/
tests
/
expr8.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
23 lines (21 loc) · 427 Bytes
Breadcrumbs
lpython
/
tests
/
expr8.py
Copy path
File metadata and controls
23 lines (21 loc) · 427 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from
lpython
import
i32
,
f32
def
test_binop
():
x
:
i32
x2
:
f32
x
=
2
**
3
x2
=
f32
(
2.0
**
3.5
)
x
=
54
-
100
x2
=
f32
((
3.454
-
765.43
)
+
534.6
)
x2
=
f32
(
5346.565
*
3.45
)
x2
=
f32
(
5346.565
**
3.45
)
# binop on logical type
x
=
True
+
True
x
=
True
-
False
x
=
True
*
False
x
=
True
**
False
b1
:
bool
b2
:
bool
b1
=
True
b2
=
False
x
=
i32
(
b1
//
b1
)
x
=
b1
**
b2
Back
|
FazBrowse Home
|
New Git URL