fb-cpp 0.0.2
A modern C++ wrapper for the Firebird database API
Loading...
Searching...
No Matches
fbcpp::ScaledNumber< T > Struct Template Referencefinal

Represents a numeric value with an explicit decimal scale. More...

#include <types.h>

Public Member Functions

bool operator== (const ScaledNumber &o) const noexcept
 

Public Attributes

value {}
 Unscaled numeric value.
 
int scale = 0
 Decimal scale applied to value.
 

Detailed Description

template<typename T>
struct fbcpp::ScaledNumber< T >

Represents a numeric value with an explicit decimal scale.

Definition at line 56 of file types.h.

Member Function Documentation

◆ operator==()

template<typename T >
bool fbcpp::ScaledNumber< T >::operator== ( const ScaledNumber< T > &  o) const
inlinenoexcept

Definition at line 58 of file types.h.

Member Data Documentation

◆ scale

template<typename T >
int fbcpp::ScaledNumber< T >::scale = 0

Decimal scale applied to value.

Definition at line 77 of file types.h.

◆ value

template<typename T >
T fbcpp::ScaledNumber< T >::value {}

Unscaled numeric value.

Definition at line 72 of file types.h.


The documentation for this struct was generated from the following file: