trunc(3M) Mathematical Library Functions trunc(3M)NAME
trunc, truncf, truncl - round to truncated integer value
SYNOPSIS
c99 [ flag... ] file... -lm [ library... ]
#include <math.h>
double trunc(double x);
float truncf(float x);
long double truncl(long double x);
DESCRIPTION
These functions round their argument to the integer value, in floating format, nearest to but no larger in magnitude than the argument.
RETURN VALUES
Upon successful completion, these functions return the truncated integer value.
If x is NaN, a NaN is returned.
If x is +-0 or +-Inf, x is returned.
ERRORS
No errors are defined.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO math.h(3HEAD), attributes(5), standards(5)SunOS 5.11 12 Jul 2006 trunc(3M)
Check Out this Related Man Page
trunc(3M) Mathematical Library Functions trunc(3M)NAME
trunc, truncf, truncl - round to truncated integer value
SYNOPSIS
cc [ flag... ] file... -lm [ library... ]
#include <math.h>
double trunc(double x);
float truncf(float x);
long double truncl(long double x);
DESCRIPTION
These functions round their argument to the integer value, in floating format, nearest to but no larger in magnitude than the argument.
RETURN VALUES
Upon successful completion, these functions return the truncated integer value.
If x is NaN, a NaN is returned.
If x is +-0 or +-Inf, x is returned.
ERRORS
No errors are defined.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO math.h(3HEAD), attributes(5), standards(5)SunOS 5.10 1 Sep 2002 trunc(3M)
I have some processes that show a long file path as part of the process name and the process name gets truncated off.
Does anyone know how to get the full output from the `ps`command so that I can see the whole process name? (9 Replies)
Hi
Problem of ps on Solaris 8 and 9
Perhaps a silly question but I can't find a solution.
the output of the command ps -ef is truncated.
I've tried to change the terminal settings with stty putting
a big number of colums: no change.
Following the man page of ps i have set the variable... (8 Replies)
Hi,
I have a program that gets called from the front end of my application. Actually it creates some temporary files and uses them and deletes them at last. But sometimes, say once in 6 times, some of these temporary files are getting truncated in the middle and because of this my program is... (9 Replies)
Hi,
I was working on the truncate oracle table shell script. The script is supplied with one table name as a parameter and I would like to change it so that it is passed a file name with a list of tables. And the script needs to truncate tables one by one by looping through the file. In other... (10 Replies)
Hi,
I have files with names like file1.txt.txt.txt.txt and file2.txt.txt.txt.txt.txt............ (random infinite number of .txt exist).
how to truncate (mv) their names to ones with single .txt extension like file1.txt and file1.txt ? In other words, how to extract the filename upto first... (12 Replies)
I am using FC6 just in case it matters, though i hope it doesn't.
If i have a file or some files that i want to truncate the filename of, so that it is only a certain number of characters in length, how would i do that on the command line?
Also, just to make it more interesting, say i... (11 Replies)
hi
i'm a bit stuck trying to find the correct syntax in order to run a cron job which just truncates all info from a single table in my database
i have a main database - db1
and i have a table in that database - userips
i wish to create a cron job that truncates or removes all the info... (9 Replies)
Hello all.
I would like to make a script (or two shell scripts) that will do the following.
I need the maximum file name and directory name to be 38 characters long.
As well, if shortening the file name ends up making all of the files in that directory have the same name, then I would like... (9 Replies)
ps -eo pid,ppid,uid,user,args
If i use above command on any of my sol boxes,i see that fifth column (args or COMMAND) is truncated.
Is there a way of getting full details in this column ,like we have in AIX?
Regards
Abhi (13 Replies)
Hi everyone,
I have a question for you, I'm trying to create a script that will automate creating loading screens for the iPhone.
So what I need to do, is list the directories inside /var/mobile/Applications and scan inside those, for the .app directory inside each. Take that .app name... (15 Replies)
Hello:
I have a large file which contains lines like the following:
1/t123ab, &Xx:1:1234:12345:123456@ABCDEFG... at -$100.00%
/t is a tab, spaces are as indicated
the string "&Xx:1:1234:12345:123456$ABCDEFG..." has a slightly variable number of numbers and letters, but it always starts... (9 Replies)
Hi,
I have Solaris-10 server. /usr/ucb/ps auxww is showing full path if I am running it from root. But if I run it from non-root user, its output is truncated. I don't want to use any other alternate command.
Please suggest, what can be its solution.
Terminal is set to term. (21 Replies)
I want to remove from a file the trailing null characters (0x00) and stop doing so when a different byte is found (which should not be deleted), and either put the result to the same file or a different one.
Any ideas? (9 Replies)