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

Method d2s

ij/src/main/java/ij/gui/ImageWindow.java:450–454  ·  view source on GitHub ↗
(double n)

Source from the content-addressed store, hash-verified

448 }
449
450 private String d2s(double n) {
451 int digits = Tools.getDecimalPlaces(n);
452 if (digits>2) digits=2;
453 return IJ.d2s(n,digits);
454 }
455
456 @AstroImageJ(reason = "Disable final check for extra width, disables drawing of border rectangle", modified = true)
457 public void paint(Graphics g) {

Callers 2

createSubtitleMethod · 0.95
addNumericFieldMethod · 0.45

Calls 2

getDecimalPlacesMethod · 0.95
d2sMethod · 0.95

Tested by

no test coverage detected