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

Method main

Astronomy_/src/main/java/astroj/GFormat.java:76–83  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

74 }
75
76 public static void main (String[] args)
77 {
78 double[] tests = {0.0, -333.333, 4444.4444, -55555.55555, 666666.666666, -7777777.7777777, 88888888.88888888,
79 -0.1, 0.02, -0.003, 0.0004, -0.00005, 0.000006, -0.0000007, 0.00000008, -0.000000009};
80 GFormat g = new GFormat("7.5");
81 for (int i=0; i < tests.length; i++)
82 System.out.println("g-Formatted form of "+tests[i]+" is "+g.format(tests[i]));
83 }
84 }

Callers

nothing calls this directly

Calls 2

formatMethod · 0.95
printlnMethod · 0.80

Tested by

no test coverage detected