Home » Julia

NaN16 Constant in Julia

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

Julia | NaN16 Constant

NaN16 is a constant of the Float16 type in Julia programming language, it represents "not-a-number" value.

Syntax:

    NaN16

Example:

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

# Julia example of NaN16

x = NaN16

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

Output

x: NaN
typeof(x): Float16

Reference: Julia constants



Comments and Discussions!

Load comments ↻





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