Package org.djunits.formatter
Class Format
java.lang.Object
org.djunits.formatter.Format
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final intDefault total width of formatted value. -
Method Summary
-
Field Details
-
DEFAULTSIZE
public static final int DEFAULTSIZEDefault total width of formatted value.- See Also:
-
-
Method Details
-
format
Format a floating point value.- Parameters:
value- the value to format- Returns:
- the formatted floating point value
-