| Modifier and Type | Method and Description |
|---|---|
static <T extends Number> |
round(int decimalAmount,
T t)
Rounds a number to another number with a fixed amount of decimals.
|
static <T extends Number> |
round(T t)
Rounds a number to a two-decimal number.
|
public static <T extends Number> T round(T t)
T - a number classt - a numberpublic static <T extends Number> T round(int decimalAmount, T t)
T - a number classdecimalAmount - a fixed amount of decimalst - a numberCopyright © 2023. All rights reserved.