Here you can find the source of formatCUBRIDNumber(BigDecimal value)
Parameter | Description |
---|---|
value | Decimal number |
public static String formatCUBRIDNumber(BigDecimal value)
//package com.java2s; import java.math.BigDecimal; import java.text.DecimalFormat; public class Main { private final static String DEFAULT_NUMERIC_FORMAT = "#0.######################################"; /**/*www . j av a2 s.c o m*/ * Format number to fit for CUBRID numeric type. * * @param value Decimal number * @return string */ public static String formatCUBRIDNumber(BigDecimal value) { return new DecimalFormat(DEFAULT_NUMERIC_FORMAT).format(value); } }