Quantize y to exponent into x when exactly representable.
Synopsis
Declared in <bdldfp_decimalimputil.h>
static
int
quantizeEqual(
ValueType128* x,
ValueType128 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