DataStax Documentation Home Page
  • Support
  • DataStax Home
  • Downloads
  • Learn
    • Academy
    • Workshops
    • Blog
    • Resource library
    • Examples on GitHub
  • Drivers
    • Driver home page
    • C++ Driver Guide
    • C# Driver Guide
    • Java Driver Guide
    • Node.js Driver Guide
    • Python Driver Guide
  • Glossary
DataStax C/C++ Driver 1.0 (Earlier version)
  • 2.17
  • 2.16
  • 2.15
  • 2.14
  • 2.13
  • 2.12
  • 2.11
  • 2.10
  • 2.9
  • 2.8
  • 2.7
  • 2.6
  • 2.5
  • 2.4
  • 2.3
  • 2.2
  • 2.1
  • 2.0
  • 1.0
  1. Home
  2. API Reference
  3. CassDecimal

struct CassDecimal

Arbitrary-precision integer.

Attributes

cass_int32_t

scale

CassBytes

varint

Functions

CassDecimal

cass_decimal_init

( cass_int32_t scale, CassBytes varint )

Constructs a decimal object.

Note: This does not allocate memory. The object wraps the pointer passed into this function.

Parameters:
Name Type Details
in scale cass_int32_t
in varint CassBytes
Returns:
Type Details
CassDecimal

A decimal object.

Contents

  • Features page
  • Changelog page
  • API Reference index
    • CassBatch struct
    • CassBytes struct
    • CassCluster struct
    • CassCollection struct
    • CassDecimal struct
    • CassFuture struct
    • CassInet struct
    • CassIterator struct
    • CassLogMessage struct
    • CassPrepared struct
    • CassResult struct
    • CassRow struct
    • CassSchema struct
    • CassSchemaMeta struct
    • CassSchemaMetaField struct
    • CassSession struct
    • CassSsl struct
    • CassStatement struct
    • CassString struct
    • CassUuid struct
    • cassandra.h file
    • CassUuidGen struct
    • CassValue struct

Contact Us

+1 (650) 389-6000

info@datastax.com

© DataStax | Privacy policy | Terms of use | 04 December 2023

Build time: 04 December 2023 06:34:16.599

DataStax, Titan, and TitanDB are registered trademark of DataStax, Inc. and its subsidiaries in the United States and/or other countries.

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries.