Quantize y to exponent into x when exactly representable.
Synopses
Declared in <bdldfp_decimalimputil.h>
Quantize y to exponent into x when exactly representable.
static
int
quantizeEqual(
ValueType128* x,
ValueType128 y,
int exponent);
Quantize y to exponent into x when exactly representable.
static
int
quantizeEqual(
ValueType32* x,
ValueType32 y,
int exponent);
Quantize y to exponent into x when exactly representable.
static
int
quantizeEqual(
ValueType64* x,
ValueType64 y,
int exponent);
Return Value
0 on success, and a non‐zero value otherwise
Parameters
Name |
Description |
x |
receives the quantized value on success |
y |
value to quantize |
exponent |
target quantum exponent |
Created with MrDocs