NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Currency Structure

OBSOLETE. Use Decimal class intead.

Represents a currency value.

Object
   ValueType
      Currency

[Visual Basic]
Public Structure Currency
   Implements IFormattable, IComparable
[C#]
public struct Currency : IFormattable, IComparable
[C++]
public __value struct Currency : public IFormattable, IComparable

[JScript] In JScript, you can use the structures in the NGWS frameworks, but you cannot define your own.

Remarks

The Currency value type is useful for calculations involving money or for any fixed-point calculation where round-off errors cannot be tolerated.

This value type represents an 8-byte, complement integer (long), scaled by 10,000 to give a fixed-point number with 15 digits to the left of the decimal point and 4 digits to the right. This representation provides a range of positive 922,337,203,685,477.5807 or negative 922,337,203,685,477.5808.

Requirements

Namespace: System

Assembly: mscorlib.dll

See Also

Currency Members | System Namespace | IFormattable | IComparable