Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

isgreaterequal(3m) [hpux man page]

isgreaterequal(3M)														isgreaterequal(3M)

NAME
isgreaterequal() - floating-point quiet comparison macro (>=) SYNOPSIS
floating-expr floating-expr DESCRIPTION
The macro determines whether its first argument is greater than or equal to its second argument. The value of is always equal to however, unlike does not raise the invalid exception when x and y are unordered. The arguments must be of floating type. For HP Integrity servers, the arguments can be any floating type. For PA-RISC, each argument must be either or USAGE
To use the macro, compile either with the default option or with the and options. Make sure your program includes Link in the math library by specifying on the compiler or linker command line. RETURN VALUE
The macro returns the value of The macro raises no floating-point exceptions. ERRORS
No errors are defined. SEE ALSO
isgreater(3M), isless(3M), islessequal(3M), islessgreater(3M), isunordered(3M), math(5). STANDARDS CONFORMANCE
isgreaterequal(3M)

Check Out this Related Man Page

ISGREATER(3)						   BSD Library Functions Manual 					      ISGREATER(3)

NAME
isgreater, isgreaterequal, isless, islessequal, islessgreater, isunordered -- compare two floating-point numbers LIBRARY
Standard C Library (libc, -lc) SYNOPSIS
#include <math.h> int isgreater(real-floating x, real-floating y); int isgreaterequal(real-floating x, real-floating y); int isless(real-floating x, real-floating y); int islessequal(real-floating x, real-floating y); int islessgreater(real-floating x, real-floating y); int isunordered(real-floating x, real-floating y); DESCRIPTION
Each of the macros isgreater(), isgreaterequal(), isless(), islessequal(), and islessgreater() takes arguments x and y and returns a non-zero value if and only if its nominal relation on x and y is true. These macros always return zero if either argument is not a number (NaN), but unlike the corresponding C operators, they never raise a floating point exception. The isunordered() macro takes arguments x and y, returning non-zero if either x or y is NaN. For any pair of floating-point values, one of the relationships (less, greater, equal, unordered) holds. SEE ALSO
fpclassify(3), math(3), signbit(3) STANDARDS
The isgreater(), isgreaterequal(), isless(), islessequal(), islessgreater(), and isunordered() macros conform to ISO/IEC 9899:1999 (``ISO C99''). BSD
December 1, 2008 BSD
Man Page

9 More Discussions You Might Find Interesting

1. Programming

How to Use macro _POSIX_SOURCE with pthread

I use Digital Unix 4.0F (OSF/1) .I write a simple programe : #define _POSIX_SOURCE #include <pthread.h> void main(void) { } But , the compiler report many errors . I do not know why the compiler compain that . Thank you in advance (1 Reply)
Discussion started by: chenhao_no1
1 Replies

2. HP-UX

USRSTACK macro

I'm upleveling code from 10.20 to 11.11....but I'm running into a problem in which the USRSTACK macro does not seem to be defined in 11.11. Has anybody else experienced this/fixed it/worked around it? Is there a different macro I should be using instead? Thanks for any info you can provide!! (1 Reply)
Discussion started by: jalburger
1 Replies

3. Programming

Make-question - redefine a macro, using another macro..?

I think there is no problem to use any macro in a new macro definishion, but I have a problem with that. I can not understand why? I have a *.mak file that inludes file with many definitions and rules. ############################################## include dstndflt.mak ... One of the... (2 Replies)
Discussion started by: alex_5161
2 Replies

4. UNIX for Dummies Questions & Answers

floating point error in linux + C

Here's a program and its pretty simple .It requires file handling and some calculations but on running it I am not getting the required result.It seems that the code outside the file read's outer while loop is not executing e.g the print statement is not being printed.Plz Help! #include<stdio.h>... (1 Reply)
Discussion started by: headrush
1 Replies

5. Programming

help with macro tween and syntax error

im working on a program that has to correctly add the macro TWEEN to the system (it determines if a string falls beween two other strings in a basic sort) im having problems doing this. here is what i got. int main(){ char name; scanf("%s",&name); if (TWEEN("ABC", name, "XYZ")) printf("%s... (4 Replies)
Discussion started by: rickym2626
4 Replies

6. Solaris

Error- ld.so.1: expr: fatal: libgmp.so.3: open failed:No such file or directory

Hi Friends I have a compiler(Sun Forte,I believe) running in my Solaris 9 box. since y'day my development team is finding this error when they compile: ld.so.1: expr: fatal: libgmp.so.3: open failed: No such file or directory I ran a search for this file and found it in one of my file... (2 Replies)
Discussion started by: Hari_Ganesh
2 Replies

7. Shell Programming and Scripting

Addition of floating numbers

Hi, i want to add two decimal values to $ set a= 12.4 $ set b=3.6 $ w=`expr $a - $b` expr: non-numeric argument or is there any other method to do this mathematics operation. i need to use this into my script. (4 Replies)
Discussion started by: dear_abhi2007
4 Replies

8. UNIX for Dummies Questions & Answers

create a macro in vi file

In vi, how do I create a macro? For example, I want to create a macro to join lines and insert ^ Please assist. Thanks! (1 Reply)
Discussion started by: onlinelearner02
1 Replies

9. UNIX for Dummies Questions & Answers

macro

Can I create a macro in UNIX? If so where do I find out how? (1 Reply)
Discussion started by: JD_Sal
1 Replies