Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit ac1be407 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

allow access to SI unit string

parent 534adbe4
Branches
Tags
No related merge requests found
......@@ -1907,14 +1907,13 @@ namespace TUGraz.VectoCommon.Utils
/// <summary>
/// Returns the Unit Part of the SI Unit Expression.
/// </summary>
private string GetUnitString()
public string GetUnitString()
{
if (Denominator.Any()) {
if (Numerator.Any()) {
return string.Concat(Numerator) + "/" + string.Concat(Denominator);
} else {
return "1/" + string.Concat(Denominator);
}
return "1/" + string.Concat(Denominator);
}
if (Numerator.Any()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment