Package | Description |
---|---|
sirius.kernel.commons |
Provides common classes used by large parts of the framework.
|
Modifier and Type | Field and Description |
---|---|
static NumberFormat |
NumberFormat.MACHINE_NO_DECIMAL_PLACES
Describes a format which rounds to integer numbers (no decimal places).
|
static NumberFormat |
NumberFormat.MACHINE_TWO_DECIMAL_PLACES
Describes a format which rounds to two decimal places.
|
static NumberFormat |
NumberFormat.NO_DECIMAL_PLACES
Describes a format which rounds to integer numbers (no decimal places).
|
static NumberFormat |
NumberFormat.PERCENT
Describes the default format used to create string representations of percentages.
|
static NumberFormat |
NumberFormat.TWO_DECIMAL_PLACES
Describes a format which rounds to two decimal places.
|
Modifier and Type | Method and Description |
---|---|
Amount |
Amount.round(NumberFormat format)
Rounds the number according to the given format.
|
Value |
Amount.toSmartRoundedString(NumberFormat format)
Converts the number into a string just like
Amount.toString(NumberFormat) . |
Value |
Amount.toString(NumberFormat format)
Converts the number into a string according to the given format.
|
Copyright © 2018. All rights reserved.