Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

oracle.adfnmc.java.lang
Class MathHelper

java.lang.Object
  extended by oracle.adfnmc.java.lang.MathHelper

public class MathHelper
extends java.lang.Object

Additional static methods that are available in JavaSE Math class, but not JavaME Math.

Author:
PARACHAN

Constructor Summary
MathHelper()
           
 
Method Summary
static double exp(double x)
           
static double log(double x)
           
static double log10(double x)
           
static long pow(long value, long exp)
           
static double random()
          Returns a pseudo-random number between 0.0 and 1.0.
static long round(double d)
          Answers the result of rounding the argument to an integer.
static int round(float f)
          Answers the result of rounding the argument to an integer.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MathHelper

public MathHelper()
Method Detail

log

public static double log(double x)

log10

public static double log10(double x)

pow

public static long pow(long value,
                       long exp)

random

public static double random()
Returns a pseudo-random number between 0.0 and 1.0.

Returns:
a pseudo-random number

round

public static long round(double d)
Answers the result of rounding the argument to an integer.

Parameters:
d - the value to be converted
Returns:
the closest integer to the argument.

round

public static int round(float f)
Answers the result of rounding the argument to an integer.

Parameters:
f - the value to be converted
Returns:
the closest integer to the argument.

exp

public static double exp(double x)

Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.