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

32 bit #86

@jmkuhn

Description

@jmkuhn
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions