Parallel Colt 0.9.4

cern.colt.matrix
Interface Former


public interface Former

Formats a double or complex (double[]) into a string (like sprintf in C).

Version:
1.0, 21/07/00
Author:
wolfgang.hoschek@cern.ch, Piotr Wendykier (piotr.wendykier@gmail.com)
See Also:
Comparator, cern.colt, Sorting

Method Summary
 String form(double value)
          Formats a double into a string (like sprintf in C).
 String form(double[] value)
          Formats a complex (double[]) into a string (like sprintf in C).
 String form(float value)
          Formats a float into a string (like sprintf in C).
 String form(float[] value)
          Formats a complex (float[]) into a string (like sprintf in C).
 String form(int value)
          Formats an int into a string (like sprintf in C).
 String form(long value)
          Formats an long into a string (like sprintf in C).
 

Method Detail

form

String form(double value)
Formats a double into a string (like sprintf in C).

Parameters:
value - the number to format
Returns:
the formatted string
Throws:
IllegalArgumentException - if bad argument

form

String form(float value)
Formats a float into a string (like sprintf in C).

Parameters:
value - the number to format
Returns:
the formatted string
Throws:
IllegalArgumentException - if bad argument

form

String form(int value)
Formats an int into a string (like sprintf in C).

Parameters:
value - the number to format
Returns:
the formatted string
Throws:
IllegalArgumentException - if bad argument

form

String form(long value)
Formats an long into a string (like sprintf in C).

Parameters:
value - the number to format
Returns:
the formatted string
Throws:
IllegalArgumentException - if bad argument

form

String form(double[] value)
Formats a complex (double[]) into a string (like sprintf in C).

Parameters:
value - the number to format
Returns:
the formatted string
Throws:
IllegalArgumentException - if bad argument

form

String form(float[] value)
Formats a complex (float[]) into a string (like sprintf in C).

Parameters:
value - the number to format
Returns:
the formatted string
Throws:
IllegalArgumentException - if bad argument

Parallel Colt 0.9.4

Jump to the Parallel Colt Homepage