public class Numbers extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Numbers.MixedTypedNumber |
| Modifier and Type | Field and Description |
|---|---|
static byte |
DOUBLE
Double type.
|
static byte |
INTEGER
Integer type.
|
static byte |
LONG
Long type.
|
static byte |
NULL
null value.
|
| Constructor and Description |
|---|
Numbers() |
| Modifier and Type | Method and Description |
|---|---|
static Number |
divide(Number n,
int divisor)
Divide a Number by an int with automatic casting.
|
static byte |
getTypeBound(Number n)
Return the minimal variable type required to hold the number.
|
public static final byte NULL
public static final byte INTEGER
public static final byte LONG
public static final byte DOUBLE
Copyright © 2023. All rights reserved.