public class Precision extends Object
Constructor and Description |
---|
Precision(String numberOfDigitsBeforePips,
String numberOfPips)
Creates a new Precision object with the specified parameters.
|
Precision(String numberOfDigitsBeforePips,
String numberOfPips,
String numberOfFractionalPips)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Two instances of Precision are considered equal if they have the same return value for each of these methods:
|
String |
getNumberOfDigitsBeforePips()
Returns the number of digits between the decimal point and the first pip digit.
|
String |
getNumberOfFractionalPips()
Returns the number of digits there are after the pips.
|
String |
getNumberOfPips()
Returns the number of pip digits there are.
|
int |
hashCode()
Two instances of Precision have the same hash code if they have the same return value for each of these methods:
|
String |
toString() |
@Deprecated public Precision(String numberOfDigitsBeforePips, String numberOfPips, String numberOfFractionalPips)
numberOfDigitsBeforePips
- The number of digits between the decimal point and first pip digit. For example, on a USDGBP rate of 1.23456 where
the "45" are the pips, this value should be "2". There are two digits between the decimal point and the "4".numberOfPips
- The number of pip digits there are. This is almost always "2".numberOfFractionalPips
- The number of digits there are after the pips. For example, on a USDGBP rate of 1.23456 where the "45" are the pips,
this value should be "1" because there is one digit after the "5".public Precision(String numberOfDigitsBeforePips, String numberOfPips)
numberOfDigitsBeforePips
- The number of digits between the decimal point and first pip digit. For example, on a USDGBP rate of 1.23456 where
the "45" are the pips, this value should be "2". There are two digits between the decimal point and the "4".numberOfPips
- The number of pip digits there are. This is almost always "2".public String getNumberOfDigitsBeforePips()
public String getNumberOfPips()
public String getNumberOfFractionalPips()
public boolean equals(Object o)
Two instances of Precision are considered equal if they have the same return value for each of these methods:
public int hashCode()
Two instances of Precision have the same hash code if they have the same return value for each of these methods:
Copyright © 2015 Caplin Systems.