mirror of
https://github.com/lcn2/calc.git
synced 2025-08-19 01:13:27 +03:00
Release calc version 2.12.0
This commit is contained in:
10
help/trunc
10
help/trunc
@@ -17,13 +17,13 @@ DESCRIPTION
|
||||
Truncation of a non-integer prodcues values nearer to zero.
|
||||
|
||||
EXAMPLE
|
||||
> print trunc(pi()), trunc(pi(), 5)
|
||||
; print trunc(pi()), trunc(pi(), 5)
|
||||
3 3.14159
|
||||
|
||||
> print trunc(3.333), trunc(3.789), trunc(3.333, 2), trunc(3.789, 2)
|
||||
; print trunc(3.333), trunc(3.789), trunc(3.333, 2), trunc(3.789, 2)
|
||||
3 3 3.33 3.78
|
||||
|
||||
> print trunc(-3.333), trunc(-3.789), trunc(-3.333, 2), trunc(-3.789, 2)
|
||||
; print trunc(-3.333), trunc(-3.789), trunc(-3.333, 2), trunc(-3.789, 2)
|
||||
-3 -3 -3.33 -3.78
|
||||
|
||||
LIMITS
|
||||
@@ -51,8 +51,8 @@ SEE ALSO
|
||||
## received a copy with calc; if not, write to Free Software Foundation, Inc.
|
||||
## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
##
|
||||
## @(#) $Revision: 29.2 $
|
||||
## @(#) $Id: trunc,v 29.2 2000/06/07 14:02:33 chongo Exp $
|
||||
## @(#) $Revision: 29.3 $
|
||||
## @(#) $Id: trunc,v 29.3 2006/05/07 07:25:46 chongo Exp $
|
||||
## @(#) $Source: /usr/local/src/cmd/calc/help/RCS/trunc,v $
|
||||
##
|
||||
## Under source code control: 1994/09/30 00:52:38
|
||||
|
Reference in New Issue
Block a user