scalax.data

object Numbers

[source: scalax/data/Numbers.scala]

object Numbers
extends AnyRef
Method Summary
def approximate (n : Long, divs : Int) : Long
Returns an approximate value of n, to the nearest 1/divs of 1 significant figure.
def asSi (n : Long) : java.lang.String
def asSi (n : java.math.BigDecimal, suffix : java.lang.String) : java.lang.String
Returns n as a String, with trailing zeros replaced by an SI abbreviation.
def asSi (n : Long, scale : Int, suffix : java.lang.String) : java.lang.String
def asSi (n : scala.BigDecimal, suffix : java.lang.String) : java.lang.String
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
def approximate(n : Long, divs : Int) : Long
Returns an approximate value of n, to the nearest 1/divs of 1 significant figure.

def asSi(n : java.math.BigDecimal, suffix : java.lang.String) : java.lang.String
Returns n as a String, with trailing zeros replaced by an SI abbreviation.

def asSi(n : scala.BigDecimal, suffix : java.lang.String) : java.lang.String

def asSi(n : Long, scale : Int, suffix : java.lang.String) : java.lang.String

def asSi(n : Long) : java.lang.String


Copyright (c) 2005-8 The Scalax Project. All Rights Reserved.