From c9fc5bf5b0b0653a95f579cf99258dc8b8e735a8 Mon Sep 17 00:00:00 2001 From: Jukka Aho Date: Thu, 14 Jul 2016 13:08:11 +0300 Subject: [PATCH] StringUtils -> Formatting --- REQUIRE | 1 - src/postprocess_utils.jl | 8 +++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/REQUIRE b/REQUIRE index 220f328..49de314 100644 --- a/REQUIRE +++ b/REQUIRE @@ -6,4 +6,3 @@ HDF5 JLD Compat DataFrames -StringUtils diff --git a/src/postprocess_utils.jl b/src/postprocess_utils.jl index d5c0eef..db37b8f 100644 --- a/src/postprocess_utils.jl +++ b/src/postprocess_utils.jl @@ -7,7 +7,8 @@ using JuliaFEM using DataFrames using HDF5 using LightXML -using StringUtils +using Formatting +#using StringUtils # not in metadata import HDF5: h5read, h5write @@ -68,8 +69,9 @@ end """ A more appropriate representation for floats in results. """ function DataFrames.ourshowcompact(io::IO, x::Float64) - print(io, u"\% 0.4E(x)") - return + #print(io, u"\% 0.4E(x)") + #return + print(io, sprintf1("% 0.4E", x)) end """