'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?



Solution 1:[1]

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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Nils Gudat