[perl #68872] [PATCH] Implement div operator to create Rats

2009-08-31 Thread via RT
# New Ticket Created by Solomon Foster # Please include the string: [perl #68872] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=68872 > Quick implementation of div operator. This will make the S03-operators/basic-type

Re: div operator

2004-06-20 Thread Brent 'Dax' Royal-Gordon
use integer; #Perl 5 my int ($t); #Perl 6 $t = time - $when_it_happen; $sec=$t%60; $t=int($t/60); $min=$t%60; $t=int($t/60); $hours=$t%24; $t=int($t/24); $days=$t; return time_elapsed($days,$hours,$min,$sec) -- Brent "Dax" Royal-Gordon <[EMAIL PROTECTED]> Perl and Parrot hacker Oceani

Re: div operator

2004-06-20 Thread Alexey Trofimenko
On Sun, 20 Jun 2004 15:57:48 +0100, Jonathan Worthington <[EMAIL PROTECTED]> wrote: "Alexey Trofimenko" <[EMAIL PROTECTED]> wrote: what do you think about adding C operator, akin %, to perl6 core? I mean, as$a % $b really does int($a) % int($b) and returns modul

Re: div operator

2004-06-20 Thread Jonathan Worthington
"Alexey Trofimenko" <[EMAIL PROTECTED]> wrote: > > what do you think about adding C operator, akin %, to perl6 core? > > I mean, as$a % $b > really does int($a) % int($b) > and returns modulous, > > so $a div $b > really does int( in

div operator

2004-06-20 Thread Alexey Trofimenko
what do you think about adding C operator, akin %, to perl6 core? I mean, as$a % $b really does int($a) % int($b) and returns modulous, so $a div $b really does int( int($a) / int($b) ) and returns integer division. but with native int