Class Format

java.lang.Object
org.djunits.formatter.Format

public final class Format extends Object
Format a floating point number in a reasonable way.

Copyright (c) 2025-2026 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://djunits.org. The DJUNITS project is distributed under a three-clause BSD-style license.

Author:
Alexander Verbraeck, Peter Knoppers
  • Field Details

    • DEFAULTSIZE

      public static final int DEFAULTSIZE
      Default total width of formatted value.
      See Also:
  • Method Details

    • format

      public static String format(double value)
      Format a floating point value.
      Parameters:
      value - the value to format
      Returns:
      the formatted floating point value