Skip to content

Commit

Permalink
Issue #14. SIDimensions prints blank string for dimensionless
Browse files Browse the repository at this point in the history
  • Loading branch information
averbraeck committed Jul 23, 2023
1 parent 59aae03 commit b1408dd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/org/djunits/unit/si/SIDimensions.java
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,10 @@ public String toString(final boolean divided, final String separator, final Stri
}
}
}
if (s.toString().equals("1"))
{
return "";
}
return s.toString();
}

Expand Down

0 comments on commit b1408dd

Please sign in to comment.