RINT(3) BSD Library Functions Manual RINT(3)NAME
nearbyint, nearbyintf, nearbyintl, rint, rintf, rintl -- round to integral value in floating-point format
LIBRARY
Math Library (libm, -lm)
SYNOPSIS
#include <math.h>
double
nearbyint(double x);
float
nearbyintf(float x);
long double
nearbyintl(long double x);
double
rint(double x);
float
rintf(float x);
long double
rintl(long double x);
DESCRIPTION
The rint(), rintf(), and rintl() functions return the integral value nearest to x according to the prevailing rounding mode. These functions
raise an inexact exception when the original argument is not an exact integer.
The nearbyint(), nearbyintf(), and nearbyintl() functions perform the same operation, except that they do not raise an inexact exception.
SEE ALSO abs(3), ceil(3), fabs(3), fenv(3), floor(3), ieee(3), lrint(3), lround(3), math(3), round(3)STANDARDS
These functions conform to ISO/IEC 9899:1999 (``ISO C99'').
HISTORY
A rint() function appeared in Version 6 AT&T UNIX. The nearbyint() and nearbyintf() functions appeared in FreeBSD 5.3, and the long double
variants were first available in FreeBSD 8.0.
BSD January 13, 2008 BSD
Check Out this Related Man Page
RINT(3) BSD Library Functions Manual RINT(3)NAME
nearbyint, nearbyintf, nearbyintl, rint, rintf, rintl -- round to integral value in floating-point format
LIBRARY
Math Library (libm, -lm)
SYNOPSIS
#include <math.h>
double
nearbyint(double x);
float
nearbyintf(float x);
long double
nearbyintl(long double x);
double
rint(double x);
float
rintf(float x);
long double
rintl(long double x);
DESCRIPTION
The rint(), rintf(), and rintl() functions return the integral value nearest to x according to the prevailing rounding mode. These functions
raise an inexact exception when the original argument is not an exact integer.
The nearbyint(), nearbyintf(), and nearbyintl() functions perform the same operation, except that they do not raise an inexact exception.
SEE ALSO abs(3), ceil(3), fabs(3), fenv(3), floor(3), ieee(3), lrint(3), lround(3), math(3), round(3)STANDARDS
These functions conform to ISO/IEC 9899:1999 (``ISO C99'').
HISTORY
A rint() function appeared in Version 6 AT&T UNIX. The nearbyint() and nearbyintf() functions appeared in FreeBSD 5.3, and the long double
variants were first available in FreeBSD 8.0.
BSD January 13, 2008 BSD
i want to print the column file using awk or cut in dynamic manner
like
trmp=2;temp1=1;temp3=2
awk 'BEGIN{OFS=IFS="\t"} {print $temp,$temp1,$temp3}' client_data.txt
or cut -f $temp1,$temp2,$temp3 -d"\t" file_name .
but it is showing error , In awk can i use variable as in printing... (36 Replies)
Hi ALL,
I want to print lines from file using certain conditions
for exmple:
# The following commands will create a new control file and use it
# to open the database.
# The contents of online logs will be lost and all backups will
# be invalidated. Use this only if online logs are... (25 Replies)
Hi,
I'm at following old machine:@rs6000:/:> uname -a
AIX rs6000 2 4 007016224C00 We are facing some problems with print queues, whenever a print queue gets stuck we cannot cancel it, we don't have any other option except restarting the machine, we have following queues:@rs6000:/etc:> lpstat... (23 Replies)
Hi Friends,
I am working on a script.. Looking forward for your expert help.....
My requirement is:
I have a text file where, need to search equip * RTF or end of line with RTF ,once this pattern is found then print 2nd line, 6th line, 7th line to a different file.
For Ex:
equip 1... (34 Replies)
So I've been working on this for some time now and can't seem to find the solution that works for me. I'm working in C/Unix. Basically, I want to take a user input and output something different. For example, I want to take a password and output *'s. In another instance, I want to take inputed... (35 Replies)
Hi Guys,
I have been trying to resolve a printing problem but nothing works out .
I have an Epson LQ 680 (dot matrix printer) . I need to print a file . The paper length should be 34 .Left margin should be 5. I have tried the following things after researching from the man pages.
pr -t... (24 Replies)
Hi,
using awk command I want to print filenames and the last line of each file, in a single command line statement.
I want to use 'awk', because I want to add more functionality to this logic later.
I tried the following on *.sh files in the current directory
find . -type f -name "*.sh"... (26 Replies)
file 1
Sun Mar 17 00:01:33 2013 submit , Name="1234"
Sun Mar 17 00:01:33 2013 submit , Name="1344"
Sun Mar 17 00:01:33 2013 submit , Name="1124"
..
..
..
..
Sun Mar 17 00:01:33 2013 submit , Name="8901"
file 2
Sun Mar 17 00:02:47 2013 1234 execute SUCCEEDED
Sun Mar 17... (24 Replies)
Is possible to print padded string in printf?
Example
echo 1 | awk '{printf("%03d\n", $1)}'
001I want
S1
S11
S2
S21to be padded as:
S01
S11
S02
S21Thanks! (26 Replies)
Hello,
I've been trying to find the answer to this with Google and trying to browse the forums, but I haven't been able to come up with anything. If this has already been answered, please link me to the thread as I can't find it.
I've been asked to write a script that pulls a list of our CPE... (51 Replies)
Hello,
I am on AIX.
When I encounter extended ascii characters and special characters on a file I need to print..
Byte position, actual character and line number.
Is there a simple command that can give me the above result ?
Thanks in advance (38 Replies)
Greetings,
I'm trying to delete a file with a weird name from within Terminal on a Mac.
It's a very old file (1992) with null characters in the name: ââWord FinderÂŽ Plusâ˘.
Here are some examples of what I've tried:
12FX009:5 dpontius$ ls
ââWord FinderÂŽ Plusâ˘
12FX009:5 dpontius$ rm... (29 Replies)
]I would like to make the second file label 'b' print down the first file label 'a', like shifting down the file creating new lines I want it to print all the way down until the first line of the second file hit the last line of the first file. Would I have to put this into a file itself or could I... (24 Replies)