List of usage examples for java.math BigDecimal TEN
BigDecimal TEN
To view the source code for java.math BigDecimal TEN.
Click Source Link
From source file:Main.java
public static void main(String[] args) { System.out.println(BigDecimal.TEN); }
From source file:Main.java
/** * Write a {@link BigDecimal} value into XML output * with maximal 8 digits and 2 decimal places. * * @param value/*from w ww. ja va 2 s . co m*/ * value to write * * @return * XML string * * @throws IllegalArgumentException * if a validation error occured */ public static String printDecimal8_2(BigDecimal value) { return printDecimal(value, BigDecimal.ZERO, BigDecimal.TEN.pow(8), 2, false); }
From source file:Main.java
/** * Write a {@link BigDecimal} value into XML output * with maximal 13 digits and 2 decimal places. * * @param value/*w w w .java 2s . c o m*/ * value to write * * @return * XML string * * @throws IllegalArgumentException * if a validation error occured */ public static String printDecimal13_2(BigDecimal value) { return printDecimal(value, BigDecimal.ZERO, BigDecimal.TEN.pow(13), 2, false); }
From source file:Main.java
/** * Write a {@link BigDecimal} value into XML output, * that matches the 'NumberOfRoomsType' simple type. * * @param value//from w w w. j a v a 2 s .c om * value to write * * @return * XML string * * @throws IllegalArgumentException * if a validation error occured */ public static String printRoomNr(BigDecimal value) { return printDecimal(value, new BigDecimal("0.49"), BigDecimal.TEN.pow(4), 2, false); }
From source file:Main.java
/** * Write a {@link BigDecimal} value into XML output, * that matches the 'PriceMultiplierType' simple type. * * @param value//from www . ja v a 2 s.c om * value to write * * @return * XML string * * @throws IllegalArgumentException * if a validation error occured */ public static String printPriceMultiplier(BigDecimal value) { return printDecimal(value, BigDecimal.ZERO, BigDecimal.TEN.pow(2), 1, true); }
From source file:Main.java
/** * Write a {@link BigDecimal} value into XML output, * that matches the type of the 'numberOfRooms' element in "BaseHouse". * * @param value/*from w w w . ja va 2 s .com*/ * value to write * * @return * XML string * * @throws IllegalArgumentException * if a validation error occured */ public static String printRoomNrForBaseHouse(BigDecimal value) { return printDecimal(value, BigDecimal.ZERO, BigDecimal.TEN.pow(3), 1, true); }
From source file:fi.iki.dezgeg.matkakorttiwidget.gui.MatkakorttiWidgetApp.java
public static synchronized List<Card> getCardList() throws Exception { String username = prefs.getString("username", "<not set>"); String password = prefs.getString("password", ""); if (DEBUG && username.equals("dezgegt")) return Arrays.asList(new Card("Tyhja", "a", BigDecimal.ZERO, null), new Card("Rahaa", "b", BigDecimal.TEN, null), new Card("Kautta", "c", BigDecimal.ZERO, new Date(113, 11, 28)), new Card("Raha+Kausi", "d", new BigDecimal("99.99"), new Date()), new Card("Paljon rahaa", "e", new BigDecimal("199.99"), null)); else if (DEBUG && username.equals("dezgege")) return Arrays.asList(); return new MatkakorttiApi(username, password).getCards(); }
From source file:org.mayocat.shop.catalog.front.representation.CurrencyRepresentation.java
public CurrencyRepresentation(Currency currency, Locale locale) { this.symbol = CURRENCY_FORMATTER.withLocale(locale) .print(Money.of(CurrencyUnit.of(currency), BigDecimal.TEN, RoundingMode.HALF_EVEN)); this.localSymbol = MoneyUtil.getLocalSymbol(currency); }
From source file:com.ventura24.lv.CustomerController.java
@RequestMapping(method = RequestMethod.GET) public ResponseEntity<?> findAllCustomers() { return ResponseEntity.ok(new Customer(BigDecimal.TEN, 1L, "name")); }
From source file:org.jrecruiter.service.GoogleMapsStaticTest.java
private void sendGetRequest() { // Send a GET request to the servlet try {/*from w w w. j ava2s. c om*/ final URI url = GoogleMapsUtils.buildGoogleMapsStaticUrl(BigDecimal.TEN, BigDecimal.TEN, 10); final URLConnection conn = url.toURL().openConnection(); final BufferedImage img = ImageIO.read(conn.getInputStream()); Assert.assertNotNull(img); } catch (Exception e) { e.printStackTrace(); } }