Class DoubleFormatter
Inheritance
System.Object
DoubleFormatter
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: FixAntenna.Fix.Message.Format
Assembly: FixAntenna.Message.dll
Syntax
public class DoubleFormatter
Methods
Format(Double, Int32, Byte[], Int32)
Declaration
public static int Format(double d, int extPrecision, byte[] buff, int offset)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | d | |
| System.Int32 | extPrecision | |
| System.Byte[] | buff | |
| System.Int32 | offset |
Returns
| Type | Description |
|---|---|
| System.Int32 |
FormatWithPadding(Double, Int32, Int32, Byte[], Int32)
Declaration
public static void FormatWithPadding(double value, int precision, int padLength, byte[] buffer, int offset)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | value | |
| System.Int32 | precision | |
| System.Int32 | padLength | |
| System.Byte[] | buffer | |
| System.Int32 | offset |
GetFormatLength(Double, Int32)
Declaration
public static int GetFormatLength(double d, int extPrecision)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | d | |
| System.Int32 | extPrecision |
Returns
| Type | Description |
|---|---|
| System.Int32 |
GetRequiredFormattedLength(Double, Int32)
Declaration
public static int GetRequiredFormattedLength(double d, int extPrecision)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | d | |
| System.Int32 | extPrecision |
Returns
| Type | Description |
|---|---|
| System.Int32 |
ParseDouble(Byte[], Int32, Int32)
Declaration
public static double ParseDouble(byte[] str, int offset, int length)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte[] | str | |
| System.Int32 | offset | |
| System.Int32 | length |
Returns
| Type | Description |
|---|---|
| System.Double |