public abstract class Rounder
extends java.lang.Object
Modifier and Type | Field | 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 | Description |
---|---|
Rounder() |
Modifier and Type | Method | 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 valuevalue
public abstract double nextUp(double value)
value
- input valuevalue
public abstract double nextDown(double value)
Copyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.