Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

imaxdiv(3c) [hpux man page]

div(3C) 																   div(3C)

NAME
div(), ldiv(), lldiv(), imaxdiv() - integer division and remainder SYNOPSIS
DESCRIPTION
Computes the quotient and remainder of the division of the numerator numer by the denominator denom. If the division is inexact, the sign of the resulting quotient is that of the algebraic quotient, and the magnitude of the resulting quotient is the largest integer less than the magnitude of the algebraic quo- tient. If the result can be represented, the result is returned in a structure of type (defined in having members quot and rem for the quotient and remainder respectively. Both members have type and values such that quot denom rem numer. If the result cannot be represented, the behavior is undefined. Similar to except that the arguments each have type and the result is returned in a structure of type (defined in having members quot and rem for the quotient and remainder respectively. Similar to except that the arguments each have type and the result is returned in a structure of type (defined in having members quot and rem for the quotient and remainder respectively. Similar to except that the arguments each have type and the result is returned in a structure of type (defined in having members quot and rem for the quotient and remainder respectively. WARNINGS
Behavior is undefined if denom is zero. SEE ALSO
floor(3M), thread_safety(5). STANDARDS CONFORMANCE
div(3C)

Check Out this Related Man Page

div(3C) 																   div(3C)

NAME
div(), ldiv(), lldiv(), imaxdiv() - integer division and remainder SYNOPSIS
DESCRIPTION
Computes the quotient and remainder of the division of the numerator numer by the denominator denom. If the division is inexact, the sign of the resulting quotient is that of the algebraic quotient, and the magnitude of the resulting quotient is the largest integer less than the magnitude of the algebraic quo- tient. If the result can be represented, the result is returned in a structure of type (defined in having members quot and rem for the quotient and remainder respectively. Both members have type and values such that quot denom rem numer. If the result cannot be represented, the behavior is undefined. Similar to except that the arguments each have type and the result is returned in a structure of type (defined in having members quot and rem for the quotient and remainder respectively. Similar to except that the arguments each have type and the result is returned in a structure of type (defined in having members quot and rem for the quotient and remainder respectively. Similar to except that the arguments each have type and the result is returned in a structure of type (defined in having members quot and rem for the quotient and remainder respectively. WARNINGS
Behavior is undefined if denom is zero. SEE ALSO
floor(3M), thread_safety(5). STANDARDS CONFORMANCE
div(3C)
Man Page

4 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Problem deleting file with special character

I'm having problems deleting a file with a special character and I'm hoping that somebody here can help. The file "-osample1.c" will not remove from my directory. Here is an example of what happens. Any ideas would be appreciated. > ls *sample1* ls: illegal option -- . usage: ls... (2 Replies)
Discussion started by: hart1165
2 Replies

2. Shell Programming and Scripting

to create a export query from a file

Hi Guys,,, I have a file which is of this type. abdc defd afds adfse I want to create a export statement like this. Db2 "export to /clocal/rem/user/rem/used.txt of del select * from t.tel where name in ('abdc','defd','afds','adfse') with ur" Please help me.. Thanks for... (2 Replies)
Discussion started by: mac4rfree
2 Replies

3. Shell Programming and Scripting

connecting to table to extract multiple rows into file from unix script

I need to extract the data from oracle table and written the below code. But it is not working.There is some problem with the query and output is shown is No rows selected" . If I run the same query from sql developer there is my required output. And if I run the shell script with simple sql... (7 Replies)
Discussion started by: giridhar276
7 Replies

4. Shell Programming and Scripting

awk - sed / reading from a data file and doing algebraic operations

Hi everyone, I am trying to write a bash script which reads a data file and does some algebraic operations. here is the structure of data.xml file that I have; 1 <data> 2 . 3 . 4 . 5 </data> 6 <data> 7 . 8 . 9 . 10</data> etc. Each data block contains same number of lines (say... (4 Replies)
Discussion started by: hayreter
4 Replies