org.eclipse.egf.common.helper
Class MathHelper
java.lang.Object
org.eclipse.egf.common.helper.MathHelper
public class MathHelper
- extends Object
Extra mathematical functions.
Method Summary |
static String |
formatAsDuration(long duration)
|
static int |
multiply(int sourceValue_p,
float multiplier_p)
Multiply given integer and float value, and return result as an int. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SECOND
public static final long SECOND
- See Also:
- Constant Field Values
MINUTE
public static final long MINUTE
- See Also:
- Constant Field Values
HOUR
public static final long HOUR
- See Also:
- Constant Field Values
DAY
public static final long DAY
- See Also:
- Constant Field Values
MathHelper
public MathHelper()
formatAsDuration
public static String formatAsDuration(long duration)
multiply
public static int multiply(int sourceValue_p,
float multiplier_p)
- Multiply given integer and float value, and return result as an int.
- Parameters:
sourceValue_p
- multiplier_p
-
- Returns:
Copyright (c) Thales Corporate Services S.A.S, 2009.
This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.