# remquof(3) [osx man page]

```REMQUO(3)						   BSD Library Functions Manual 						 REMQUO(3)

NAME
remquo -- floating-point remainder and quotient function

SYNOPSIS
#include <math.h>

double
remquo(double x, double y, int *quo);

long double
remquol(long double x, long double y, int *quo);

float
remquof(float x, float y, int *quo);

DESCRIPTION
The remquo() functions compute the value r such that r = x - n*y, where n is the integer nearest the exact value of x/y.

If there are two integers closest to x/y, n shall be the even one. If r is zero, it is given the same sign as x.  This is the same value that
is returned by the remainder() function.  remquo() also calculates the lower seven bits of the integral quotient x/y, and gives that value
the same sign as x/y. It stores this signed value in the object pointed to by quo.

SPECIAL VALUES
remquo(x, y, quo) returns a NaN and raises the "invalid" floating-point exception if x is infinite or y is 0.

VECTOR OPERATIONS
If you need to apply the remquo() function to SIMD vectors or arrays, using the following functions provided by the Accelerate.framework may
give significantly better performance:

#include <Accelerate/Accelerate.h>

vFloat vremquo(vFloat x, vFloat y, vUInt32 *q);

math(3), remainder(3)

STANDARDS
The remquo() functions conform to ISO/IEC 9899:2011.

BSD								 December 11, 2006							       BSD```

## Check Out this Related Man Page

```REMQUO(3)						   BSD Library Functions Manual 						 REMQUO(3)

NAME
remquo -- floating-point remainder and quotient function

SYNOPSIS
#include <math.h>

double
remquo(double x, double y, int *quo);

long double
remquol(long double x, long double y, int *quo);

float
remquof(float x, float y, int *quo);

DESCRIPTION
The remquo() functions compute the value r such that r = x - n*y, where n is the integer nearest the exact value of x/y.

If there are two integers closest to x/y, n shall be the even one. If r is zero, it is given the same sign as x.  This is the same value that
is returned by the remainder() function.  remquo() also calculates the lower seven bits of the integral quotient x/y, and gives that value
the same sign as x/y. It stores this signed value in the object pointed to by quo.

SPECIAL VALUES
remquo(x, y, quo) returns a NaN and raises the "invalid" floating-point exception if x is infinite or y is 0.

VECTOR OPERATIONS
If you need to apply the remquo() function to SIMD vectors or arrays, using the following functions provided by the Accelerate.framework may
give significantly better performance:

#include <Accelerate/Accelerate.h>

vFloat vremquo(vFloat x, vFloat y, vUInt32 *q);

math(3), remainder(3)

STANDARDS
The remquo() functions conform to ISO/IEC 9899:2011.

BSD								 December 11, 2006							       BSD```
Man Page

## Mac OS X Script Continuation Character?

Some of my scripts have very long commands that go beyond the horizontal scroll limits of my screen (1024 x 768), even with a very small font. Is there a continuation character (like the option+l "ell") in AppleScript that will let me break up the line? Right now I just press a hard return to...

## Changing the way "more" works

Hi, The "more" command is currently being used to display reports to users. However, "more" allows the user to shell out to the command prompt if they happen to type in "!" and they can also start editing the file if they type in "v". Is it possible to restrict users access to these by...

## help with egrep syntax

This may seem like a stupid question to anyone but a novice , but I need help with the following .... can anyone tell me how to change the following command to an "&" rather then an "or" egrep "GMED|S26" fileForfiltering > newfilteredFile i need it to contain both strings (on the same...

## Relationship (or difference) between AIX and AS/400

Not sure if I understand. one is an OS and the other is the "machine", or what?. If AS/400 is the "CPU", can AIX run on other "CPUs"? Just two lines of explanation will do for me. Thanks, panchopp.

## Installing HP-UX o a windows based server

Hello, We would like to perform tests on a product that my company created lately. We don't have the right hardware for HP-UX enviornment I've read the thred "Unix environments for MS Windows", but didn't see there a possibility to install HP-UX OS on a special compatible hardware. We've...

## Compose variable name

Hi, CRT=1 LPORT= while do echo "Please type the Port and F when finish : (current value: \$LPORT)" readDefault -e LPORT if then "LISTEN_PORT"\$CRT=\$LPORT \$CRT++ fi done for i in "\$CRT"; do echo...

## Not able to get value in the variable

alert_val=\$( db2 "select value (( select distinct 1 from opus.alerts where alname = 'MQ_FAILURE_INTERFACE' and aldatetime > current timestamp - 20 minutes),0) from sysibm.sysdummy1 with ur" | sed -n '/--/ {n; p;}') Can some one please tell me why alert_val is not able to get the return value...

## problem with AWK and floats below 0

Hello. I have a problem with AWK and floats below 0 in a script. It may be simplified to this line (please, take into account that my "locale" is Spanish, so the system will read "," as decimal separator): echo -1,25 2,55745 0,33 ,278 | awk '{print \$1+1, \$2+1, \$3+1, \$4+1}'... getting: -0,25...

## To append two columns without double quotes

Hi i have a file with follw data "20090427","0","","16371311","-100200","","","","16371311","JUL","09" In the 10th column i need to convert the month name into month number in this case JUL will be 7 and append the 10th and 11th column which shows me the output as 709. Can you suggest a shell...

## parsing simple output help needed

Goal: for each hostname (mars, phobos, and deimos grab the value of state = in a variable so I work on it further. I figured I'll need to use sed to find the target host name, then substitute the "linefeed and what I am assuming is a tab state =" to null and grab the state (in this case "free")...

## Sed Command and the "|"?

Hello All, Does the sed "s/// command" have an equivalent to Perl's vertical pipe character "|", meaning 'OR'... i.e. To say replace "a" or "b" with "m": (the pipe has a different function in sed... Does it have an 'OR' character?) sed 's/(a|b)/m/g' # This would work in perl (it would...

## perl regex help needed

Hi, I want to validate strings in perl, the string may contains characters from a-zA-Z0-9 and symbols +-_.:/\ To validate such a string I computed a regex if (\$string =~ m/^/) { print "valid"; } else { print "invalid"; } but this regex also validates strings that contain...

## Add newline before another line of occurance

Hi , I have a file like I want to add a new line before "Realized" only when it comes after "Sheep". There may be any line betwwen "Sheep" and "Realized" other than this two. Say my new line is "a goat", so the desired result would be Can any body help me in this? thanks

## Extract multiple columns base on double quotes as delimiter

Hi All, I have my data like below "1","abc,db","hac,aron","4","5" Now I need to extract 1,2,4th columns Output should be like "1",abc,db","4" Am trying to use cut command but not able to get the results. Thanks in advance.

## Accounting Software

GNUCash - There is documented problem with auto-fill; ie, that it cannot be turned off. It will delete 1/2 of a transaction. I have searched the internet and have not been able to make any of the "work arounds" work. I have also contacted the email lists, to no avail. This is open source,...