Nightbreak Java API
Toggle table of contents
JVM
Target filter
JVM
Switch theme
Search in API
Skip to content
Nightbreak Java API
MagmaCore
/
com.magmaguy.magmacore.util
/
Round
Round
public
class
Round
Members
Functions
decimal
Places
Link copied to clipboard
public
static
double
decimalPlaces
(
double value
,
int places
)
Rounds a number to a specified number of decimal places.
public
static
float
decimalPlaces
(
float value
,
int places
)
four
Decimal
Places
Link copied to clipboard
public
static
double
fourDecimalPlaces
(
double value
)
Rounds a number to 4 decimal places.
public
static
float
fourDecimalPlaces
(
float value
)
one
Decimal
Place
Link copied to clipboard
public
static
double
oneDecimalPlace
(
double value
)
Rounds a number to 1 decimal places.
two
Decimal
Places
Link copied to clipboard
public
static
double
twoDecimalPlaces
(
double value
)
Rounds a number to 2 decimal places.