Contents

Decimal

A structure representing a base-10 number.

Declaration

struct Decimal

Topics

Creating an empty decimal

Creating a decimal from components

Creating a decimal from a floating point number

Creating a decimal from an integer

Creating a decimal from an unsigned integer

Creating a decimal from another decimal

Creating a decimal by parsing a string

Performing arithmetic

Performing arithmetic using references

Getting a decimal’s characteristics

Getting particular decimals

Formatting decimals

Converting between decimals and strings

Comparing decimals

Using reference types

Supporting Types

Operators

Instance Methods

See Also

Numbers