GeoSoft API

no.geosoft.cc.util
Class NiceNumber

Object
  |
  +--NiceNumber

public class NiceNumber
extends Object

A number generated by the NiceNumbers class.

Author:
GeoSoft

Method Summary
 double getPosition()
          Return the relative position of this value among all the nice numbers.
 int getRank()
          Return the rank of this nice number.
 double getValue()
          Return the value of this nice number.
 String toString()
          Create a string representation of this instance.
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getValue

public double getValue()
Return the value of this nice number.

Returns:
Value of this nice number.

getRank

public int getRank()
Return the rank of this nice number.

Returns:
Rank of this nice number. Major is 0, next is 1 and so on.

getPosition

public double getPosition()
Return the relative position of this value among all the nice numbers. First is 0.0, last is 1.0 and so on.

Returns:
Relative position of this value among the nice numbers.

toString

public String toString()
Create a string representation of this instance.

Overrides:
toString in class Object
Returns:
A string representation of this class.

GeoSoft API

Copyright © 2004 - Geotechnical Software Services     geosoft.no