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:
44
help/h2hms
44
help/h2hms
@@ -5,13 +5,13 @@ SYNOPSIS
|
||||
h2hms(hours, h, m, s [,rnd])
|
||||
|
||||
TYPES
|
||||
hours real
|
||||
h null-or-real-valued lvalue with assign-to permission
|
||||
m null-or-real-valued lvalue with assign-to permission
|
||||
s null-or-real-valued lvalue with assign-to permission
|
||||
rnd nonnegative integer, defaults to config("mod")
|
||||
hours real
|
||||
h null-or-real-valued lvalue with assign-to permission
|
||||
m null-or-real-valued lvalue with assign-to permission
|
||||
s null-or-real-valued lvalue with assign-to permission
|
||||
rnd nonnegative integer, defaults to config("mod")
|
||||
|
||||
return mod(hours, 24, rnd)
|
||||
return mod(hours, 24, rnd)
|
||||
|
||||
DESCRIPTION
|
||||
Convert hours hours into h hours, m minutes, and s seconds.
|
||||
@@ -19,7 +19,7 @@ DESCRIPTION
|
||||
The return value is a normalized number of hours, and is equivalent
|
||||
to the following:
|
||||
|
||||
return_value = mod(hours, 24, rnd);
|
||||
return_value = mod(hours, 24, rnd);
|
||||
|
||||
The argument rnd, if not given, defaults to config("mod").
|
||||
For more information on the effects of rnd, see "help mod".
|
||||
@@ -32,7 +32,7 @@ DESCRIPTION
|
||||
|
||||
The value h will be set as if the following were used:
|
||||
|
||||
h = int(return_value);
|
||||
h = int(return_value);
|
||||
|
||||
For some rounding modes, h will be an integer in the interval [0, 24).
|
||||
For other rounding modes, h will be an integer in the interval (-24, 0].
|
||||
@@ -42,10 +42,10 @@ DESCRIPTION
|
||||
|
||||
The value m will be set as if the following were used:
|
||||
|
||||
tmp = return_value - h;
|
||||
tmp_m = tmp * 60;
|
||||
free(tmp);
|
||||
m = int(tmp_m);
|
||||
tmp = return_value - h;
|
||||
tmp_m = tmp * 60;
|
||||
free(tmp);
|
||||
m = int(tmp_m);
|
||||
|
||||
For some rounding modes, m will be an integer in the interval [0, 60).
|
||||
For other rounding modes, m will be an integer in the interval (-60, 0].
|
||||
@@ -55,10 +55,10 @@ DESCRIPTION
|
||||
|
||||
The value s will be set as if the following were used:
|
||||
|
||||
tmp = tmp_m - m;
|
||||
free(tmp_m);
|
||||
s = tmp * 60;
|
||||
free(tmp);
|
||||
tmp = tmp_m - m;
|
||||
free(tmp_m);
|
||||
s = tmp * 60;
|
||||
free(tmp);
|
||||
|
||||
For some rounding modes, s will be a real value in the interval [0, 60).
|
||||
For other rounding modes, s will be a real value in the interval (-60, 0].
|
||||
@@ -67,7 +67,7 @@ DESCRIPTION
|
||||
The following shows relationship between the return value and the resulting
|
||||
h, m, and s values:
|
||||
|
||||
return_value == h + m/60 + s/3600;
|
||||
return_value == h + m/60 + s/3600;
|
||||
|
||||
EXAMPLE
|
||||
; ## if args are undefined, pre-declare them or assign them as args
|
||||
@@ -115,7 +115,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
|
||||
@@ -123,8 +123,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