dmdscript.dnumber

Members

Functions

deconstruct_real
number_t deconstruct_real(d_number x, int f, out int pe)

Let e and n be integers such that 10**f <= n < 10**(f+1) and for which the exact mathematical value of n * 10**(e-f) - x is as close to zero as possible. If there are two such sets of e and n, pick the e and n for which n * 10**(e-f) is larger.

Meta