Convert float to int in Julia Lang : <p>Is there a way to convert a floating number to int in Julia? I'm trying to convert a floating point number to a fixed precision number with the decimal part represented as 8bit integer. In order to do this, I need to truncate just the decimal part of the number and I figured the best way to do this would be to subtract the converted integer of x from floating point x:</p>

<pre><code>  x = 1.23455
y = x - Int(x)
println(y)
</code></pre>

<p>y = 0.23455</p>
