This file is indexed.

/usr/share/calc/help/base2 is in apcalc-common 2.12.5.0-1build1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
NAME
    base2 - set 2nd output base

SYNOPSIS
    base2([mode])

TYPES
    mode	real

    return	real

DESCRIPTION
    By default, calc will output values according to the default base
    as controlled by the base() builtin function.

    The base2() builtin function, if given a non-zero argument, enables
    double base output mode.  In double base output mode, calc values
    are displayed twice, once according to base() and again according
    to base2().  In double base output mode, the second time a value is
    displayed, it is displayed within comments:

	21701 /* 0x54c5 */

    The arguments for base2() are identical to base() with the addition
    of the 0 value:

	     base2	equivalent
		      config("mode2")'s

	       2	"binary"	base 2 fractions
			"bin"

	       8	"octal"		base 8 fractions
			"oct"

	      10	"real"		base 10 floating point
			"float"
			"default"

	     -10	"integer"	base 10 integers
			"int"

	      16	"hexadecimal"	base 16 fractions
			"hex"

	     1/3	"fraction"	base 10 fractions
			"frac"

	    1e20	"scientific"	base 10 scientific notation
			"sci"
			"exp"

	       0	"off"		disable double base output

    For convenience, any non-integer non-zero value is assumed to mean
    base 10 fractions and any integer >= 2^64 is assumed to mean base 10
    scientific notation.

    These base2() calls have the same meaning as config("mode2", "fraction"):

	base2(1/3)	base2(0.1415)	base2(16/37)

    These base2() calls have the same meaning as config("mode2", "scientific"):

	base2(1e20)	base2(2^64)	base2(2^8191-1)

    However the base2() function will only return one of the base values
    listed in the table above.

EXAMPLE
    ; base2()
	    0
    ; base2(8)
	    0 /* 0 */
    ; print 10
    10 /* 012 */
    ; base2(16),
    ; 131072
    	131072 /* 0x20000 */
    ; 2345
	2345 /* 0x929 */

LIMITS
    none

LINK LIBRARY
    int math_setmode2(int newmode)

    NOTE: newmode must be one of MODE_DEFAULT, MODE_FRAC, MODE_INT,
	  MODE_REAL, MODE_EXP, MODE_HEX, MODE_OCTAL, MODE_BINARY,
	  MODE2_OFF

SEE ALSO
    base, config, str

## Copyright (C) 2002  Landon Curt Noll
##
## Calc is open software; you can redistribute it and/or modify it under
## the terms of the version 2.1 of the GNU Lesser General Public License
## as published by the Free Software Foundation.
##
## Calc is distributed in the hope that it will be useful, but WITHOUT
## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
## or FITNESS FOR A PARTICULAR PURPOSE.	 See the GNU Lesser General
## Public License for more details.
##
## A copy of version 2.1 of the GNU Lesser General Public License is
## distributed with calc under the filename COPYING-LGPL.  You should have
## received a copy with calc; if not, write to Free Software Foundation, Inc.
## 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
##
## @(#) $Revision: 30.1 $
## @(#) $Id: base2,v 30.1 2007/03/16 11:10:42 chongo Exp $
## @(#) $Source: /usr/local/src/bin/calc/help/RCS/base2,v $
##
## Under source code control:	2002/12/29 00:21:07
## File existed as early as:	2002
##
## chongo <was here> /\oo/\	http://www.isthe.com/chongo/
## Share and enjoy!  :-)	http://www.isthe.com/chongo/tech/comp/calc/