mirror of
https://github.com/lcn2/calc.git
synced 2025-08-19 01:13:27 +03:00
convert ASCII TABs to ASCII SPACEs
Converted all ASCII tabs to ASCII spaces using a 8 character tab stop, for all files, except for all Makefiles (plus rpm.mk). The `git diff -w` reports no changes.
This commit is contained in:
32
help/g2gm
32
help/g2gm
@@ -5,12 +5,12 @@ SYNOPSIS
|
||||
g2gm(grads, g, m [,rnd])
|
||||
|
||||
TYPES
|
||||
grads real
|
||||
g null-or-real-valued lvalue with assign-to permission
|
||||
m null-or-real-valued lvalue with assign-to permission
|
||||
rnd nonnegative integer, defaults to config("mod")
|
||||
grads real
|
||||
g null-or-real-valued lvalue with assign-to permission
|
||||
m null-or-real-valued lvalue with assign-to permission
|
||||
rnd nonnegative integer, defaults to config("mod")
|
||||
|
||||
return mod(grads, 400, rnd)
|
||||
return mod(grads, 400, rnd)
|
||||
|
||||
DESCRIPTION
|
||||
Convert grads gradians into g gradians, and m minutes.
|
||||
@@ -18,7 +18,7 @@ DESCRIPTION
|
||||
The return value is a normalized number of gradians, and is equivalent
|
||||
to the following:
|
||||
|
||||
return_value = mod(grads, 400, rnd);
|
||||
return_value = mod(grads, 400, rnd);
|
||||
|
||||
The argument rnd, if not given, defaults to config("mod").
|
||||
For more information on the effects of rnd, see "help mod".
|
||||
@@ -31,7 +31,7 @@ DESCRIPTION
|
||||
|
||||
The value g will be set as if the following were used:
|
||||
|
||||
g = int(return_value);
|
||||
g = int(return_value);
|
||||
|
||||
For some rounding modes, g will be an integer in the interval [0, 400).
|
||||
For other rounding modes, g will be an integer in the interval (-400, 0].
|
||||
@@ -41,9 +41,9 @@ DESCRIPTION
|
||||
|
||||
The value m will be set as if the following were used:
|
||||
|
||||
tmp = return_value - g;
|
||||
m = tmp * 60;
|
||||
free(tmp);
|
||||
tmp = return_value - g;
|
||||
m = tmp * 60;
|
||||
free(tmp);
|
||||
|
||||
For some rounding modes, m will be a real value in the interval [0, 60).
|
||||
For other rounding modes, m will be a real value in the interval (-60, 0].
|
||||
@@ -52,7 +52,7 @@ DESCRIPTION
|
||||
The following shows relationship between the return value and the resulting
|
||||
g, and m values:
|
||||
|
||||
return_value == g + m/60;
|
||||
return_value == g + m/60;
|
||||
|
||||
EXAMPLE
|
||||
; ## if args are undefined, pre-declare them or assign them as args
|
||||
@@ -100,7 +100,7 @@ SEE ALSO
|
||||
##
|
||||
## 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
|
||||
## 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
|
||||
@@ -108,8 +108,8 @@ SEE ALSO
|
||||
## received a copy with calc; if not, write to Free Software Foundation, Inc.
|
||||
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
##
|
||||
## Under source code control: 2021/09/25 17:24:51
|
||||
## File existed as early as: 2021
|
||||
## Under source code control: 2021/09/25 17:24:51
|
||||
## File existed as early as: 2021
|
||||
##
|
||||
## chongo <was here> /\oo/\ http://www.isthe.com/chongo/
|
||||
## Share and enjoy! :-) http://www.isthe.com/chongo/tech/comp/calc/
|
||||
## chongo <was here> /\oo/\ http://www.isthe.com/chongo/
|
||||
## Share and enjoy! :-) http://www.isthe.com/chongo/tech/comp/calc/
|
||||
|
Reference in New Issue
Block a user