Formatting.jl icon indicating copy to clipboard operation
Formatting.jl copied to clipboard

stack overflow in format of `Rational{BigInt}`

Open jlapeyre opened this issue 9 years ago • 1 comments

Formatting 0.2.0

julia> using Formatting

julia> format(big"1"//2, conversion="e")
ERROR: StackOverflowError:
 in ini_dec(::BigFloat, ::Int64) at ./printf.jl:953 (repeats 80000 times)

julia> versioninfo()
Julia Version 0.6.0-dev.435
Commit 8eed82e* (2016-08-30 13:50 UTC)
Platform Info:
  System: Linux (x86_64-linux-gnu)
  CPU: Intel(R) Core(TM) i7-4712HQ CPU @ 2.30GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.7.1 (ORCJIT, haswell)

jlapeyre avatar Nov 28 '16 21:11 jlapeyre

This should be closed, it is fixed on both Formatting.jl and Format.jl

ScottPJones avatar Feb 20 '24 18:02 ScottPJones