seeker_after_truth
seeker_after_truth

Reputation: 497

What is 1f6 in Julia?

In a Julia codebase I have inherited, at one point there is a division by 1f6

So far as I can tell, this division doesn't change the output online, and I haven't been able to figure out the meaning of this step by googling "1f6 Julia."

What does it mean?

Upvotes: 1

Views: 60

Answers (1)

Nils Gudat
Nils Gudat

Reputation: 13800

As usual, DNF's comment should just be the answer:

julia> 1f6
1.0f6

julia> typeof(1f6)
Float32

julia> Float64(1f6)
1.0e6

julia> Int(1f6)
1000000

Upvotes: 3

Related Questions