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

Method format

Astronomy_/src/main/java/astroj/GFormat.java:54–63  ·  view source on GitHub ↗
(double d)

Source from the content-addressed store, hash-verified

52 }
53
54 public String format (double d)
55 {
56 String eString = e.format(d);
57 String fString = f.format(d);
58 double absd = Math.abs(d);
59 if (absd < limit || eString.length() < fString.length())
60 return eString.replace(",",".");
61 else
62 return fString.replace(",",".");
63 }
64
65 public String format (float d)
66 {

Callers 15

plotFitMethod · 0.95
mainMethod · 0.95
saveImageMethod · 0.45
saveImageMethod · 0.45
paintMethod · 0.45
openPrecisionPopupMethod · 0.45
stateChangedMethod · 0.45
paintMethod · 0.45
openPrecisionPopupMethod · 0.45
printMethod · 0.45

Calls 3

lengthMethod · 0.65
absMethod · 0.45
replaceMethod · 0.45

Tested by

no test coverage detected