fb-cpp 0.0.1
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 &) const noexcept=default
 

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 51 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 63 of file types.h.

◆ value

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

Unscaled numeric value.

Definition at line 58 of file types.h.


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