Skip to content

Commit

Permalink
Merge pull request #25 from NREL/SAM_458
Browse files Browse the repository at this point in the history
Addresses part of SAM issue 458
  • Loading branch information
sjanzou authored Nov 15, 2021
2 parents 64b9704 + f494a16 commit 16c1763
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/env.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ int lk::vardata_t::as_integer() const {
}

lk_string lk::vardata_t::as_string() const {
// double intpart;
char buf[512];
switch (type()) {
case NULLVAL:
Expand All @@ -127,7 +126,7 @@ lk_string lk::vardata_t::as_string() const {
if (((double) ((int) m_u.v)) == m_u.v)
sprintf(buf, "%d", (int) m_u.v);
else
sprintf(buf, "%lf", m_u.v);
sprintf(buf, "%lg", m_u.v);
return lk_string(buf);
}
case STRING:
Expand Down

0 comments on commit 16c1763

Please sign in to comment.