com.javaflair.pokerprophesier.api.helper
Class HelperUtils

java.lang.Object
  extended by com.javaflair.pokerprophesier.api.helper.HelperUtils

public class HelperUtils
extends Object

Helper utility methods.

Author:
Javaflair

Method Summary
static String formatProbToFraction(float prob)
          Converts a probability to a fractional format String representation.
static String formatProbToOdds(float prob)
          Converts a probability to an odds format String representation.
static String formatProbToPercent(float prob)
          Converts a probability to a percentage format String representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

formatProbToOdds

public static String formatProbToOdds(float prob)
Converts a probability to an odds format String representation.

Parameters:
prob - the probability
Returns:
the String representation

formatProbToPercent

public static String formatProbToPercent(float prob)
Converts a probability to a percentage format String representation.

Parameters:
prob - the probability
Returns:
the String representation

formatProbToFraction

public static String formatProbToFraction(float prob)
Converts a probability to a fractional format String representation.

Parameters:
prob - the probability
Returns:
the String representation


Copyright © 2006 Javaflair. All Rights Reserved.