Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

fesetround(3m) [hpux man page]

fesetround(3M)															    fesetround(3M)

NAME
fesetround() - set floating-point rounding direction mode SYNOPSIS
DESCRIPTION
The function establishes the rounding direction represented by its argument round. The round argument must equal one of the macros: and If the argument does not match a rounding direction macro, the rounding direction is not changed. The default rounding direction mode is round to nearest USAGE
To use this function, compile either with the default option or with the and options. Make sure your program includes For HP Integrity servers, specify on the compiler command line or place the call to this function under the effect of an affirmative pragma: If the pragma is placed outside of any top-level declarations in a file, the pragma will apply to all declarations in the compilation fol- lowing the pragma until another pragma is encountered or until the end of the file is reached. If the pragma is placed at the beginning of a block (compound statement), the pragma will apply until another pragma is encountered or until the end of the block is reached. For PA-RISC, you might need to use the compiler option in order to prevent optimizations that can undermine the specified behavior of this function. Link in the math library by specifying on the compiler or linker command line. For more information, see the at the following site: RETURN VALUE
The function returns a zero value if and only if the argument is equal to a rounding direction macro. ERRORS
No errors are defined. EXAMPLES
Save, set, and restore the rounding direction. SEE ALSO
fegetround(3M), fenv(5). STANDARDS CONFORMANCE
: ISO/IEC C99 (including Annex F, "IEC 60559 floating-point arithmetic") fesetround(3M)

Check Out this Related Man Page

FEGETROUND(3)						   BSD Library Functions Manual 					     FEGETROUND(3)

NAME
fegetround, fesetround -- functions providing access to the floating-point rounding mode. SYNOPSIS
#include <fenv.h> #pragma STDC FENV_ACCESS ON int fegetround(void); int fesetround(int round); DESCRIPTION
These functions provide control of floating-point rounding direction modes. The fegetround() function gets the current rounding direction. It returns the value of the rounding direction macro representing the current rounding direction, or a negative value if either there is no corresponding macro or if the rounding direction is not determinable. The fesetround() function sets the rounding direction to be that specified by the argument round. If the argument is not equal to the value of one of the rounding direction macros, the rounding direction is not changed. It returns zero if and only if the requested rounding direc- tion was established. SEE ALSO
fenv(3), feclearexcept(3), fegetenv(3), fegetexceptflag(3), feholdexcept(3), fesetenv(3), feraiseexcept(3), fesetexceptflag(3), feraiseexcept(3), feupdateenv(3) STANDARDS
These functions conform to ISO/IEC 9899:TC3. BSD
May 9, 2011 BSD
Man Page

12 More Discussions You Might Find Interesting

1. Programming

How use #pragma pack() in HP unix ?

hello. i use follow sentences in include files in SCO unix is ok. #pragma pack(1) struct dddd { int iD1; char cCh1; ... }; #pragma pack() but in hp-9000 unix , not ok when compiling, cc not support #pragma pack(1) how to settle the question ? ... (1 Reply)
Discussion started by: bdyjm
1 Replies

2. UNIX for Dummies Questions & Answers

hmm

I'd like to learn more about Unix, can any of you guys gimmie something or point me in the right direction? (1 Reply)
Discussion started by: Jace
1 Replies

3. UNIX for Advanced & Expert Users

Performance Monitoring

Hi all The place I work for is about to to place there database server under heavy load for testing and would like the effect recorded as much as possible. Can anyone point me in the right direction with respect to real time system monitoring. I am aware of of 'sar', vmstat etc and hope to... (2 Replies)
Discussion started by: silvaman
2 Replies

4. Programming

changing entry point

hi... just wanted to check how i can the entry point of a program... i tried using the #pragma directive but it doesnt seem to be workin... #pragma comment(linker,"/ENTRY:startupfunction") #include<stdio.h> void startupfunction() { printf("in print\n"); main(); } int main() {... (4 Replies)
Discussion started by: strider
4 Replies

5. UNIX for Advanced & Expert Users

Importing PGP keys

I'm hoping someone can help get me moving in the right direction here, so bear with me. I've got 2 RedHat Linux servers, let's call them A & B. - A receives "sensitive" files, which are PGP encrypted, and immediately sends them off to B for decryption/processing/deletion - B needs to make... (1 Reply)
Discussion started by: peteroc
1 Replies

6. Shell Programming and Scripting

direction symbol in a variable as part of the command

Hi, How can I get this to work? #!/bin/ksh if ; then direction=">>" else direction=">" fi cat some_file_name $direction temp.txt exit This shell script is not happy with using "$direction" opposed to ">" or ">>". Thanks. (5 Replies)
Discussion started by: peterloo
5 Replies

7. Shell Programming and Scripting

Rounding off the value of Floating point value

Hello, i have some variables say: x=1.4 y=3.7 I wish to round off these values to : x = 2 (after rounding off) y = 4 (after rounding off) I am stuck. Please help. (7 Replies)
Discussion started by: damansingh
7 Replies

8. Programming

pragma page

Hi, I have a question regarding pragma page. What is the advantage of using this pragma? Also the description tells that it is a compiler directive to start of in a new page. Does the page here refer to the page in memory where the set of code under the pragma page will be starting in a new... (3 Replies)
Discussion started by: naan
3 Replies

9. Programming

#pragma warn codes on Sun Solaris to disable some warns?

I am not able to find warn-codes that should be used in #pragma warn -<code> directive!:wall: Could anybody advise where I can see a list of warnings with codes that (as I understand) should be 3-letters code? I have a pro-C program that produces some warnings. (Do not advise,... (4 Replies)
Discussion started by: alex_5161
4 Replies

10. UNIX for Dummies Questions & Answers

List of 'if -f' options - AIX / Korn Shell

Hi all, Can someone point me in the right direction for a manual on the various statement options for 'if'. Basically I have a piece of code which says: if ] and I wondered what the -f was. I know the '!' means not equal.. As usual any help much appreciated.. (5 Replies)
Discussion started by: Grueben
5 Replies

11. UNIX for Dummies Questions & Answers

Multiple line duplicates

I'm trying to find the text that occurs for both numbers not just one, I'm sure there's an easy way to do this but I can't see it. Can someone point me in the right direction? Not just give me an answer without explanation --> I want to learn. myText file: xyc 1 xyd 1 xye 1 xyf 1 xyf 1 xyf... (4 Replies)
Discussion started by: maximus73
4 Replies

12. Programming

GCC Alignment pragma

Quick question for the community of GCC programmers. I have code that uses: #pragma align 4 (as an example). Now this code has compiled for many years on a few different platforms and GCC versions. Recently I got warning messages about it (using gcc 4.9.2 on Solaris) and I wondered... (0 Replies)
Discussion started by: Pug
0 Replies