FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
daScript/examples/tutorial/tutorial08.das at master · ilyabelow/daScript · GitHub
ilyabelow
/
daScript
Public
forked from
GaijinEntertainment/daScript
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
daScript
/
examples
/
tutorial
/
tutorial08.das
Copy path
More file actions
More file actions
Latest commit
History
History
History
10 lines (8 loc) · 306 Bytes
Breadcrumbs
daScript
/
examples
/
tutorial
/
tutorial08.das
Copy path
File metadata and controls
10 lines (8 loc) · 306 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
require
tutorial_08
[
export
]
def
test
print
(
"this tutorial utilizes basic builin module with constant and function
\n
"
)
let
sq2
=
SQRT2
print
(
"sq2 =
{
sq2
}
// expecting sqrt(2), 1.41421
\n
"
)
let
xma
=
xmadd
(
sq2
,
sq2
,
1.0
,
1.0
)
//
sq2
*
sq2
+
1
*
1
=>
3
print
(
"xma =
{
xma
}
// expecting 3
\n
"
)
Back
|
FazBrowse Home
|
New Git URL