-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Behavior of convert #292
Comments
I think so. What is it that you find odd about this? To expand out the behavior: julia> v = rand(SVector{3,Int})
3-element SVector{3,Int64}:
-8557660434043172070
6108837298082502987
-4334229712641791305
julia> convert(SVector{3,Float64}, v)
3-element SVector{3,Float64}:
-8.55766e18
6.10884e18
-4.33423e18 We also have
|
I think this is intentional. It should also match the base array types: julia> v = rand(Int, 3)
3-element Array{Int64,1}:
6535532840261742524
1289793510179775070
4638388731794814437
julia> convert(Vector{Float64}, v)
3-element Array{Float64,1}:
6.535532840261743e18
1.289793510179775e18
4.638388731794814e18 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is this behavior intended and wanted?
The text was updated successfully, but these errors were encountered: