Modifier and Type | Method and Description |
---|---|
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) |
public AsString.Options precision(Long precision)
precision
- The post-decimal precision to use for floating point numbers.
Only used if precision > -1.public AsString.Options scientific(Boolean scientific)
scientific
- Use scientific notation for floating point numbers.public AsString.Options shortest(Boolean shortest)
shortest
- Use shortest representation (either scientific or standard) for
floating point numbers.public AsString.Options width(Long width)
width
- Pad pre-decimal numbers to this width.
Applies to both floating point and integer numbers.
Only used if width > -1.public AsString.Options fill(String fill)
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.Copyright © 2022. All rights reserved.