in reply to built in function for binary division
Do you mean something like the following?
use strict; use warnings; my $quotient = 0b10010110 / 0b1111; # 150 / 15 print sprintf '%b', $quotient; # prints 1010 (decimal 10)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: built in function for binary division
by ghosh123 (Monk) on Jan 11, 2013 at 05:44 UTC | |
by Kenosis (Priest) on Jan 11, 2013 at 05:52 UTC | |
by ghosh123 (Monk) on Jan 11, 2013 at 06:31 UTC | |
by Kenosis (Priest) on Jan 11, 2013 at 16:52 UTC |