| MathHelperLog2LessOrEqual Method |
Returns the largest non-negative integer x such that 2x ≤ value.
Namespace: DigitalRune.MathematicsAssembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax [CLSCompliantAttribute(false)]
public static uint Log2LessOrEqual(
uint value
)
<CLSCompliantAttribute(false)>
Public Shared Function Log2LessOrEqual (
value As UInteger
) As UInteger
public:
[CLSCompliantAttribute(false)]
static unsigned int Log2LessOrEqual(
unsigned int value
)
[<CLSCompliantAttribute(false)>]
static member Log2LessOrEqual :
value : uint32 -> uint32
Parameters
- value
- Type: SystemUInt32
The value.
Return Value
Type:
UInt32
The largest non-negative integer x such that 2
x ≤
value.
Exception: If
value is 0 then 0 is returned.
See Also