org.eclipse.birt.chart.internal.model
Class FractionApproximator

java.lang.Object
  extended by org.eclipse.birt.chart.internal.model.FractionApproximator

public class FractionApproximator
extends java.lang.Object


Constructor Summary
FractionApproximator()
           
 
Method Summary
static Fraction getExactFraction(double decimal)
           
static Fraction getFractionWithMaxDigits(double decimal, int maxDigitsForDenominator)
           
static Fraction getFractionWithNumerator(double decimal, long numerator)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FractionApproximator

public FractionApproximator()
Method Detail

getExactFraction

public static Fraction getExactFraction(double decimal)

getFractionWithMaxDigits

public static Fraction getFractionWithMaxDigits(double decimal,
                                                int maxDigitsForDenominator)

getFractionWithNumerator

public static Fraction getFractionWithNumerator(double decimal,
                                                long numerator)


Copyright © 2005-2008 Actuate Corp. All rights reserved.