Home » Julia

Sys.MACHINE Constant in Julia

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

Julia | Sys.MACHINE Constant

Sys.MACHINE is a constant of the String type in Julia programming language, it is used to the build triple (as a string).

Syntax:

    Sys.MACHINE

Example:

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

# Julia example of Sys.MACHINE

x = Sys.MACHINE

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

Output

x: x86_64-pc-linux-gnu
typeof(x): String

Reference: Julia constants



Comments and Discussions!

Load comments ↻





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