For Programmers: Free Programming Magazines  


Home > Archive > PERL Miscellaneous > April 2007 > use POSIX qw(ceil floor)









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author use POSIX qw(ceil floor)
john.swilting

2007-04-21, 8:01 am

what that wants to say
use POSIX qw(ceil floor);
Mark Clements

2007-04-21, 8:01 am

john.swilting wrote:
> what that wants to say
> use POSIX qw(ceil floor);

You're still using automatic translation software: it isn't helping you.

Qu'est que ça veut dire = "what does that/this mean?" (or near enough)

You need to read the docs.

perldoc POSIX

ceil This is identical to the C function "ceil()", returning the
smallest integer value greater than or equal to the given numerical
argument.

floor This is identical to the C function "floor()", returning the
largest integer value less than or equal to the numerical
argument.

in French:

[url]http://perl.enstimac.fr/DocFr/perlfaq4. html#perl%20atil%20une%20fonction%20roun
d[/ url]()%20et%20ceil()%20(majoration)%20et
%20floor()%20(minoration)%20et%20des%20f
onctions%20trigonom%E9triques

Mark
Michele Dondi

2007-04-21, 7:02 pm

On Sat, 21 Apr 2007 13:19:25 +0200, "john.swilting"
<john.swilting@wanadoo.fr> wrote:

>what that wants to say
>use POSIX qw(ceil floor);


use (perldoc -f use) the POSIX (perldoc POSIX) module and import the
ceil() and floor() functions, so that you can use them in your code.

leia:~ [15:24:17]$ perl -MPOSIX=floor,ceil -le 'print for map {$_,
floor($_), ceil($_)} 1.5, 1.999, 2.001'
1.5
1
2
1.999
1
2
2.001
2
3


Michele
--
{$_=pack'B8'x25,unpack'A8'x32,$a^=sub{po
p^pop}->(map substr
(($a||=join'',map--$|x$_,(unpack'w',unpack'u','G^<R<Y]*YB='
..'KYU;*EVH[.FHF2W+#"\Z*5TI/ER<Z`S(G.DZZ9OX0Z')=~/./g)x2,$_,
256),7,249);s/[^\w,]/ /g;$ \=/^J/?$/:"\r";print,redo}#JAPH,
john.swilting

2007-04-26, 7:03 pm

Mark Clements wrote:

> john.swilting wrote:
> You're still using automatic translation software: it isn't helping you.
>
> Qu'est que ça veut dire = "what does that/this mean?" (or near enough)
>
> You need to read the docs.
>
> perldoc POSIX
>
> ceil This is identical to the C function "ceil()", returning the
> smallest integer value greater than or equal to the given numerical
> argument.
>
> floor This is identical to the C function "floor()", returning the
> largest integer value less than or equal to the numerical
> argument.
>
> in French:
>
>

http://perl.enstimac.fr/DocFr/perlf...%20roun
d
()%20et%20ceil()%2
(majoration)%20et%20floor()%2
(minoration)%20et%20des%20fonctions%20tr
igonom%E9triques
>
> Mark

merci je lis un peu l'anglais mais je sais pas l ecrire
serge
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com