Reputation: 497
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
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