Ruby: Real Struct Reference

Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)

Data Fields
Real Struct Reference

`#include <bigdecimal.h>`

## Data Fields
VALUE | obj
size_t | MaxPrec
size_t | Prec
SIGNED_VALUE | exponent
short | sign
short | flag
BDIGIT | frac [FLEXIBLE_ARRAY_SIZE]

## Detailed Description

Definition at line 246 of file bigdecimal.h.

## Field Documentation

## ◆ exponent

SIGNED_VALUE Real::exponent

Definition at line 254 of file bigdecimal.h.

Referenced by VpAddSub(), VpAsgn(), VpComp(), VpCtoV(), VpDivd(), VpDtoV(), VpExponent10(), VpFrac(), VpMidRound(), VpMult(), VpNumOfChars(), VpPower(), VpSqrt(), VpToFString(), VpToString(), and VpVtoD().

## ◆ flag

short Real::flag

Definition at line 265 of file bigdecimal.h.

## ◆ frac

BDIGIT Real::frac[FLEXIBLE_ARRAY_SIZE]

Definition at line 266 of file bigdecimal.h.

Referenced by VpAddSub(), VpAsgn(), VpComp(), VpCtoV(), VpDivd(), VpDtoV(), VpExponent10(), VpFrac(), VpLeftRound(), VpMidRound(), VpMult(), VpPower(), VpSzMantissa(), VpToFString(), VpToString(), and VpVtoD().

## ◆ MaxPrec

size_t Real::MaxPrec

Definition at line 248 of file bigdecimal.h.

Referenced by rmpd_parse_special_string(), VpAlloc(), VpAsgn(), VpCtoV(), VpDivd(), VpDtoV(), VpFrac(), VpMult(), VpPower(), and VpSqrt().

## ◆ obj

VALUE Real::obj

Definition at line 247 of file bigdecimal.h.

Referenced by VpNewRbClass().

## ◆ Prec

size_t Real::Prec

Definition at line 251 of file bigdecimal.h.

Referenced by VpAddSub(), VpAsgn(), VpComp(), VpCtoV(), VpDivd(), VpDtoV(), VpFrac(), VpMidRound(), VpMult(), VpNumOfChars(), VpPower(), VpSzMantissa(), VpToFString(), VpToString(), and VpVtoD().

## ◆ sign

short Real::sign

Definition at line 255 of file bigdecimal.h.

Referenced by VpComp().

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

- ext/bigdecimal/bigdecimal.h