iceberg-cpp
Loading...
Searching...
No Matches
Functions
decimal.cc File Reference

128-bit fixed-point decimal numbers. Adapted from Apache Arrow with only Decimal128 support. https://github.com/apache/arrow/blob/main/cpp/src/arrow/util/decimal.cc More...

#include "iceberg/util/decimal.h"
#include <algorithm>
#include <bit>
#include <charconv>
#include <climits>
#include <cmath>
#include <cstring>
#include <iomanip>
#include <limits>
#include <sstream>
#include <utility>
#include "iceberg/exception.h"
#include "iceberg/result.h"
#include "iceberg/util/int128.h"
#include "iceberg/util/macros.h"
#include "iceberg/util/string_util.h"

Functions

std::ostream & iceberg::operator<< (std::ostream &os, const Decimal &decimal)
 
Decimal iceberg::operator- (const Decimal &operand)
 
Decimal iceberg::operator~ (const Decimal &operand)
 
Decimal iceberg::operator+ (const Decimal &lhs, const Decimal &rhs)
 
Decimal iceberg::operator- (const Decimal &lhs, const Decimal &rhs)
 
Decimal iceberg::operator* (const Decimal &lhs, const Decimal &rhs)
 
Decimal iceberg::operator/ (const Decimal &lhs, const Decimal &rhs)
 
Decimal iceberg::operator% (const Decimal &lhs, const Decimal &rhs)
 

Detailed Description

128-bit fixed-point decimal numbers. Adapted from Apache Arrow with only Decimal128 support. https://github.com/apache/arrow/blob/main/cpp/src/arrow/util/decimal.cc