MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / d2s

Method d2s

ij/src/main/java/ij/plugin/Slicer.java:337–346  ·  view source on GitHub ↗
(double n)

Source from the content-addressed store, hash-verified

335 }
336
337 String d2s(double n) {
338 String s;
339 if (n==(int)n)
340 s = ResultsTable.d2s(n, 0);
341 else
342 s = ResultsTable.d2s(n, 2);
343 if (s.indexOf(".")!=-1 && s.endsWith("0"))
344 s = s.substring(0, s.length()-1);
345 return s;
346 }
347
348 void saveLineInfo(Roi roi) {
349 Line line = (Line)roi;

Callers 1

showDialogMethod · 0.95

Calls 4

d2sMethod · 0.95
substringMethod · 0.80
lengthMethod · 0.65
indexOfMethod · 0.45

Tested by

no test coverage detected