Microsoft SDK for Java

Value.format

Formats a value using a format string.

Syntax

public static String format( double value, String format )

public static String format( int value, String format )

public static String format( Object value, String format )

public static String format( double value, String format )

Parameters

value

The value to format.

format

The user-defined format string or name of a predefined format.

Return Value

Returns a string containing the formatted value.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.