Code examples for DecimalFormatSymbols

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
32:	decimalDotSymbol = new DecimalFormatSymbols(); 
33:	decimalDotSymbol.setDecimalSeparator(MONEY_SEPERATOR_DOT); 
34:	decimalDotSymbol.setGroupingSeparator(MONEY_SEPERATOR_COMMA); 
Full Snippet Info
7
CodeRank
109:	DecimalFormatSymbols dfs = new DecimalFormatSymbols(); 
110:	dfs.setDecimalSeparator(','); 
111:	dfs.setGroupingSeparator(' '); 
Full Snippet Info
7
CodeRank
51:	DecimalFormatSymbols decimalGroupSymbols = new DecimalFormatSymbols(); 
52:	decimalGroupSymbols.setGroupingSeparator(' '); 
53:	Locator.getInstance().getEngine().setDecimalGroupSymbols(decimalGroupSymbols); 
Full Snippet Info
7
CodeRank
343:	DecimalFormatSymbols decimalGroupSymbols = new DecimalFormatSymbols(Locale.getDefault()); 
344:	decimalGroupSymbols.setDecimalSeparator('.'); 
345:	decimalGroupSymbols.setGroupingSeparator('\''); 
346:	cm.setDecimalGroupSymbols(decimalGroupSymbols); 
Full Snippet Info
7
CodeRank
170:	private static final DecimalFormatSymbols SYMBOLS = new DecimalFormatSymbols(Locale.ROOT); 
Full Snippet Info
7
CodeRank
27:	final DecimalFormatSymbols symbols = new DecimalFormatSymbols(Locale.getDefault()); 
28:	minusChar = symbols.getMinusSign(); 
29:	decimalSeparator = symbols.getDecimalSeparator(); 
Full Snippet Info
7
CodeRank
33:	DecimalFormatSymbols symbols = new DecimalFormatSymbols(); 
34:	symbols.setDecimalSeparator('.'); 
Full Snippet Info
7
CodeRank
100:	result.put("groupingSeparator", toString(symbols.getGroupingSeparator())); 
101:	result.put("minusSign", toString(symbols.getMinusSign())); 
102:	result.put("decimalSeparator", toString(symbols.getDecimalSeparator())); 
Full Snippet Info
7
CodeRank
32:	decimalDotSymbol = new DecimalFormatSymbols(); 
33:	decimalDotSymbol.setDecimalSeparator(MONEY_SEPERATOR_DOT); 
34:	decimalDotSymbol.setGroupingSeparator(MONEY_SEPERATOR_COMMA); 
Full Snippet Info
7
CodeRank
80:	DecimalFormatSymbols symbols = new DecimalFormatSymbols(); 
-
84:	symbols.setMinusSign(neg); 
-
89:	symbols.setDecimalSeparator(dec); 
-
94:	symbols.setGroupingSeparator(grp); 
Full Snippet Info
7
CodeRank
100:	fs = new DecimalFormatSymbols(); 
101:	DecimalFormatSymbols fsc2 = (DecimalFormatSymbols) (fs.clone()); 
-
103:	assertTrue("Object's clone isn't equal!", fs.equals(fsc2)); 
-
109:	fs.setNaN("not-a-number"); 
110:	assertTrue("Object's changed clone should not be equal!", !fs.equals(fsc2)); 
Full Snippet Info
7
CodeRank
144:	final DecimalFormatSymbols symbols = new DecimalFormatSymbols( 
-
148:	String.valueOf(symbols.getGroupingSeparator())); 
-
150:	String.valueOf(symbols.getDecimalSeparator())); 
151:	map.put("PERCENT", String.valueOf(symbols.getPercent())); 
152:	map.put("PER_MILL", String.valueOf(symbols.getPerMill())); 
153:	map.put("MINUS", String.valueOf(symbols.getMinusSign())); 
Full Snippet Info
7
CodeRank
72:	DecimalFormatSymbols symbols = new DecimalFormatSymbols(); 
-
76:	symbols.setMinusSign(neg); 
-
81:	symbols.setDecimalSeparator(dec); 
-
86:	symbols.setGroupingSeparator(grp); 
Full Snippet Info
6
CodeRank
34:	dfs.setExponentSeparator("-useless-api-"); 
Full Snippet Info
6
CodeRank
22:	final DecimalFormatSymbols symbols = new DecimalFormatSymbols(Locale.getDefault()); 
23:	minusChar = symbols.getMinusSign(); 
Full Snippet Info
6
CodeRank
34:	_decimalPlaces = decimalPlaces; 
35:	} 
36:	 
Full Snippet Info
6
CodeRank
87:	return String.format("%s %s", new DecimalFormat("#.###", new DecimalFormatSymbols(Locale.US)).format(value), units.format(value)); 
Full Snippet Info
6
CodeRank
51:	String noGroups = clientValue.replace(toString(symbols.getGroupingSeparator()), "").replace(" ", ""); 
52:	String fixedNeg = noGroups.replace(symbols.getMinusSign(), '-'); 
53:	String fixedDec = fixedNeg.replace(symbols.getDecimalSeparator(), '.'); 
Full Snippet Info
6
CodeRank
34:	 
35:	public static DoubleValueSignificantFiguresFormatter of(int significantFigures, boolean isCurrencyAmount) { 
36:	return new DoubleValueSignificantFiguresFormatter(significantFigures, isCurrencyAmount); 
Full Snippet Info
6
CodeRank
355:	DecimalFormatSymbols decimalGroupSymbols = new DecimalFormatSymbols(Locale.getDefault()); 
356:	decimalGroupSymbols.setDecimalSeparator('.'); 
357:	decimalGroupSymbols.setGroupingSeparator(JsclMathEngine.GROUPING_SEPARATOR_DEFAULT.charAt(0)); 
358:	cm.setDecimalGroupSymbols(decimalGroupSymbols); 
Full Snippet Info
6
CodeRank