Added Cyg-Win
This commit is contained in:
parent
82cbc206eb
commit
413c315806
10586 changed files with 3806249 additions and 0 deletions
26
Agent-Windows/OGP64/usr/share/awk/intdiv0.awk
Normal file
26
Agent-Windows/OGP64/usr/share/awk/intdiv0.awk
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
# intdiv0 --- do integer division
|
||||
#
|
||||
# This file and how to use it are described in the manual.
|
||||
# Therefore, we respectfully advise you to Read The Fine Manual
|
||||
# for more information.
|
||||
#
|
||||
# Arnold Robbins, arnold@skeeve.com, Public Domain
|
||||
# July, 2014
|
||||
#
|
||||
# Name changed from div() to intdiv()
|
||||
# April, 2015
|
||||
#
|
||||
# Changed to intdiv0()
|
||||
# April, 2016
|
||||
|
||||
function intdiv0(numerator, denominator, result)
|
||||
{
|
||||
split("", result)
|
||||
|
||||
numerator = int(numerator)
|
||||
denominator = int(denominator)
|
||||
result["quotient"] = int(numerator / denominator)
|
||||
result["remainder"] = int(numerator % denominator)
|
||||
|
||||
return 0.0
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue