2

I opened the Julia REPL for the first time today. I have a 32-bit installation of Julia and 64-bit installation of Windows. The default integer type is Int32 and the default floating point type is Float64.

#these throw type assertion errors
(1 + 2)::Int64
(1.0 + 2.0)::Float32

#these work
(1 + 2)::Int32
(1.0 + 2.0)::Float64

Why is the default for integers 32-bit and the default for floating points 64-bit on my system?

1 Answer 1

4

Floating-point register sizes have nothing to do with your architecture word size – 64-bit floating-point registers have been available on 32-bit systems since the 8087. See this recent julia-users discussion on the subject: https://groups.google.com/forum/#!topic/julia-users/1tDvMbfCUEE.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.