Commit 6167615e authored by Alexander Ryndin's avatar Alexander Ryndin
Browse files

Merge branch 'master' into ryndin

parents f5057434 c3f127c1
......@@ -50,10 +50,17 @@ public class EMAConstantSIUnit extends EMAConstantValue {
/**
* Does not return the unit, just the value
*
* @return
*/
@Override
public String getValueAsString(){
return getRational().toString();
public String getValueAsString() {
String result = "";
if (getRational().getDivisor().intValue() == 1) {
result += getRational().intValue();
} else {
result += getRational().doubleValue();
}
return result;
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment