Home »
Julia
NaN32 Constant in Julia
Julia | NaN32 Constant: In this tutorial, we are going to learn about the NaN32 constant with examples in Julia programming language.
Submitted by IncludeHelp, on April 02, 2020
Julia | NaN32 Constant
NaN32 is a constant of the Float32 type in Julia programming language, it represents "not-a-number" value.
Syntax:
NaN32
Example:
In this example, we are taking a variable x and assigning it with NaN32. We are printing the value and type of x using using println() function and typeof() function.
# Julia example of NaN32
x = NaN32
println("x: ", x)
println("typeof(x): ", typeof(x))
Output
x: NaN
typeof(x): Float32
Reference: Julia constants