focus expression text field at startup -> version 1.2
[LeanCalc.git] / help / ilog2
1 NAME
2     ilog2 - floor of logarithm to base 2
3
4 SYNOPSIS
5     ilog2(x)
6
7 TYPES
8     x           nonzero real
9
10     return      integer
11
12 DESCRIPTION
13     Returns the greatest integer n for which 2^n <= abs(x).
14
15 EXAMPLE
16     > print ilog2(1), ilog2(2), ilog2(3), ilog2(4), ilog(1/15)
17     0 1 1 2 -4
18
19 LIMITS
20     none
21
22 LINK LIBRARY
23     long qilog2(NUMBER *q)
24
25 SEE ALSO
26     ilog10, ilog
27