Home » Julia

Sys.BINDIR Constant in Julia

Julia | Sys.BINDIR Constant: In this tutorial, we are going to learn about the Sys.BINDIR constant with examples in Julia programming language.
Submitted by IncludeHelp, on April 02, 2020

Julia | Sys.BINDIR Constant

Sys.BINDIR is a constant of the String type in Julia programming language, it is used to get the full path to the directory that contains Julia's executable file.

Syntax:

    Sys.BINDIR

Example:

In this example, we are taking a variable x and assigning it with Sys.BINDIR. We are printing the value and type of x using using println() function and typeof() function.

# Julia example of Sys.BINDIR

x = Sys.BINDIR

println("x: ", x)
println("typeof(x): ", typeof(x))

Output

x: /usr/bin
typeof(x): String

Reference: Julia constants



Comments and Discussions!

Load comments ↻





Copyright © 2024 www.includehelp.com. All rights reserved.