AsString.Options

public static class AsString.Options

Optional attributes for AsString

Public Methods

AsString.Options
fill(String fill)
AsString.Options
precision(Long precision)
AsString.Options
scientific(Boolean scientific)
AsString.Options
shortest(Boolean shortest)
AsString.Options
width(Long width)

Inherited Methods

Public Methods

public AsString.Options fill (String fill)

Parameters
fill The value to pad if width > -1. If empty, pads with spaces. Another typical value is '0'. String cannot be longer than 1 character.

public AsString.Options precision (Long precision)

Parameters
precision The post-decimal precision to use for floating point numbers. Only used if precision > -1.

public AsString.Options scientific (Boolean scientific)

Parameters
scientific Use scientific notation for floating point numbers.

public AsString.Options shortest (Boolean shortest)

Parameters
shortest Use shortest representation (either scientific or standard) for floating point numbers.

public AsString.Options width (Long width)

Parameters
width Pad pre-decimal numbers to this width. Applies to both floating point and integer numbers. Only used if width > -1.