Product Documentation

c-treeDB API for C# - Developers Guide

Previous Topic

Next Topic

CTCurrency Methods

Constructor / Destructor

  • CTCurrency(): Creates a CTCurrency object
  • ~CTCurrency(): Destroys a CTCurrency object and resets all the dependent objects

Currency Handling

  • IsZero(): Indicates if a currency value is zero
  • Zero(): Sets a currency value to zero
  • SetCurrency(): Initializes the CTCurrency object.
  • AsFloat(): Converts a CTCurrency object to single
  • AsLong(): Converts a CTCurrency object to long
  • AsBigint(): Converts a CTCurrency object to big integer
  • AsCurrency(): Retrieves the CTCurrency type (long)
  • AsMoney(): Converts a CTCurrency object to a CTMoney object
  • AsString(): Converts a CTCurrency object to a String object
  • Round(int scale): Rounds a CTCurrency to a specified number of decimal places.

In This Section

CTCurrency.CTCurrency

CTCurrency.~CTCurrency

CTCurrency.AsBigint

CTCurrency.AsCurrency

CTCurrency.AsFloat

CTCurrency.AsLong

CTCurrency.AsMoney

CTCurrency.AsString

CTCurrency.IsZero

CTCurrency.Round

CTCurrency.SetCurrency

CTCurrency.Zero

TOCIndex