Scientific Notation in REPL

it seems to me that NumericIO.jl is a bit behind?

  • It’s still using ~/.juliarc.jl, as it’s been replaced by ~/.julia/config/startup.jl in Julia 1.0 (.juliarc.jl in Julia1.0)
  • REPL setup in the README doesn’t work with Julia 1.7.
julia> using NumericIO
julia> Base.display(r::Base.REPL.REPLDisplay, v::Union{Float32,Float64}) = print(formatted(Base.REPL.outstream(r.repl), :SI, ndigits=4), v)
ERROR: UndefVarError: REPL not defined
Stacktrace:
 [1] getproperty(x::Module, f::Symbol)
   @ Base ./Base.jl:35
 [2] top-level scope
   @ REPL[7]:1
1 Like