public abstract class Rounder extends Object
| Modifier and Type | Field and Description |
|---|---|
static Rounder |
LINEAR
Number rounder for linear scaling.
|
static Rounder |
LOG
Number rounder for logarithmic scaling.
|
static Rounder |
TIME_SECOND
Number rounder for time intervals in seconds.
|
| Constructor and Description |
|---|
Rounder() |
| Modifier and Type | Method and Description |
|---|---|
abstract double |
nextDown(double value)
Returns the next round number smaller than the given value.
|
abstract double |
nextUp(double value)
Returns the next round number larger than the given value.
|
abstract double |
round(double value)
Returns a round number near the given value.
|
public static final Rounder LINEAR
public static final Rounder LOG
public static final Rounder TIME_SECOND
public abstract double round(double value)
value - input valuevaluepublic abstract double nextUp(double value)
value - input valuevaluepublic abstract double nextDown(double value)
value - input valueCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.