MCPcopy Create free account
hub / github.com/OpenSourcePhysics/osp / newDecimalFormat

Method newDecimalFormat

src/org/opensourcephysics/numerics/Util.java:32–39  ·  view source on GitHub ↗
(String format)

Source from the content-addressed store, hash-verified

30 private static Map<String, DecimalFormat> htFormats = new Hashtable<>();
31
32 public static DecimalFormat newDecimalFormat(String format) {
33 DecimalFormat f = htFormats.get(format);
34 if (f == null) {
35 f = new DecimalFormat(format);
36 htFormats.put(format, f);
37 }
38 return f;
39}
40
41 /** Parser for simple arithmetic expressions. */
42 private static SuryonoParser parser = new SuryonoParser(0); // parser without variables

Callers 15

FunctionEditorClass · 0.95
DataToolPlotterClass · 0.80
ProtractorClass · 0.80
DataRowTableClass · 0.80
setNumericFormatMethod · 0.80
setColumnFormatMethod · 0.80
DrawingPanelClass · 0.80
ArrayTableClass · 0.80
setNumericFormatMethod · 0.80
OSPRuntimeClass · 0.80

Calls 2

getMethod · 0.65
putMethod · 0.45

Tested by

no test coverage detected