Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

32 bit #86

Open
jmkuhn opened this issue Aug 25, 2020 · 1 comment
Open

32 bit #86

jmkuhn opened this issue Aug 25, 2020 · 1 comment

Comments

@jmkuhn
Copy link
Contributor

jmkuhn commented Aug 25, 2020

julia> Sys.WORD_SIZE
32

julia> fmt("f", 1234567890123456.0)
ERROR: InexactError: trunc(Int32, 1.234567890123456e15)
Stacktrace:
 [1] trunc at ./float.jl:682 [inlined]
 [2] trunc at ./float.jl:359 [inlined]
 [3] _pfmt_f(::Base.GenericIOBuffer{Array{UInt8,1}}, ::FormatSpec, ::Float64) at /root/.julia/packages/Formatting/njXsn/src/fmtcore.jl:176
 [4] printfmt(::Base.GenericIOBuffer{Array{UInt8,1}}, ::FormatSpec, ::Float64) at /root/.julia/packages/Formatting/njXsn/src/fmtspec.jl:190
 [5] sprint(::Function, ::FormatSpec, ::Vararg{Any,N} where N; context::Nothing, sizehint::Int32) at ./strings/io.jl:105
 [6] sprint at ./strings/io.jl:101 [inlined]
 [7] fmt at /root/.julia/packages/Formatting/njXsn/src/fmtspec.jl:205 [inlined]
 [8] fmt(::String, ::Float64) at /root/.julia/packages/Formatting/njXsn/src/fmtspec.jl:206
 [9] top-level scope at REPL[8]:1
@ScottPJones
Copy link
Collaborator

I believe this is now fixed in JuliaString/Format.jl

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants