Java SQL Date Format formatFloat(int floatValue)

Here you can find the source of formatFloat(int floatValue)

Description

formatFloat Convert a float (java.sql.Float) representation into string.

License

Open Source License

Parameter

Parameter Description
floatValue Float value representation

Return

String The String format after convertion

Declaration

public static String formatFloat(int floatValue) 

Method Source Code

//package com.java2s;
/*/* w w  w .j a v a2s .  c om*/
 * @(#)TextUtility.java
 *
 * Copyright (c) 2003 DCIVision Ltd
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of DCIVision
 * Ltd ("Confidential Information").  You shall not disclose such Confidential
 * Information and shall use it only in accordance with the terms of the license
 * agreement you entered into with DCIVision Ltd.
 */

public class Main {
    /**
     * formatFloat
     *
     * Convert a float (java.sql.Float) representation into string.
     *
     * @param    floatValue  Float value representation
     * @return   String      The String format after convertion
     */
    public static String formatFloat(int floatValue) {
        return (new Float(floatValue).toString());
    }
}

Related

  1. formatDate(Object obj)
  2. formatDate(String date)
  3. formatDateTd(Object obj)
  4. formatDateToCustfmt(java.util.Date date, String dateFmt)
  5. formatDurationMillisToString(long millis)
  6. formatLogParam(Array obj)
  7. formatNumberWithZeroPrefix(int numOfZero, Integer value)
  8. formatSQLError(SQLException e)
  9. formatSqlException( StringBuilder errorMessage, SQLException exception)