Home » Julia

Sys.WORD_SIZE Constant in Julia

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

Julia | Sys.WORD_SIZE Constant

Sys.WORD_SIZE is a constant of the Int64 type in Julia programming language, it is used to get the standard word size of the current system.

Syntax:

    Sys.WORD_SIZE

Example:

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

# Julia example of Sys.WORD_SIZE

x = Sys.WORD_SIZE

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

Output

x: 64
typeof(x): Int64

Reference: Julia constants



Comments and Discussions!

Load comments ↻





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