Method bdi
bdi()
Returns the MSB difference of numerator and denominator for the value at the top of the stack.
msb(numerator) - msb(denominator)
Mainly intended for fast break criterias in iterations as alternative to relatively slow comparisons.
For example, 1e-24 corresponds to a BDI value of -80 since msb(1e+24) == 80
Declaration
public int bdi()
Returns
Type | Description |
---|---|
System.Int32 | An System.Int32 value that represents the MSB difference. |
Remarks
The result equals to an ILog2
with a maximum difference of 1 since fractional bits are not tested.