> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Anderson, Mark (Service Delivery)
> Sent: Wednesday, September 08, 2004 9:59 AM
> To: '[EMAIL PROTECTED]'; Chris
> Cc: perl-win32-users;
> [EMAIL PROTECTED]
> Subject: RE: Round Numbers
>
>
> Nope
sprintf doesn't work either...
The FAQ explains stuff about rounding here...
C:>perldoc -q round
Perhaps you could try Math::BigFloat and its fround() function.
Kind regards,
Mark Anderson
SMS Deployment
The Royal Bank of Scotland
113 Dundas Street, Edinburgh, EH3 5DE
http://www.manufacturing.
[EMAIL PROTECTED] wrote:
>
>
>
> how about
>
> $rounded = int($number+ 0.5)
Or for a specified number of digits using POSIX method :
sub pround ($;$) { # $ret = pround ($num, [$digits:2])
my $num = shift;
my $dp = shift || 2;
use POSIX qw(ceil floor);
my
Nope... try it :-) It only returns the integer component.
C:\logchecks>perl -e "print int(1.7)"
1
C:>
Kind regards,
Mark Anderson
SMS Deployment
The Royal Bank of Scotland
113 Dundas Street, Edinburgh, EH3 5DE
http://www.manufacturing.rbs.co.uk/GTrswi/
> -Original Message-
> From: [EMA
how about
$rounded = int($number+ 0.5)
Regards,
Gerhard
|-+->
| | |
| | |
| |
All,
Is there an easy way to round numbers in Perl?
Regards,
Chris
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Title: Mail::POP3Client.
Hi all,
I wrote a small Perl script which reads the emails from a POP3 mail server and does some automatic analyses on them. Now, my problem is that I am not able to take only the new emails ( only those UNREAD ). I was thinking of doing ( as a workaround ) the fo
May someone point me to a ppd containing
HTTP::Daemon::SSL
for mswin32 and give me some hints about possible pitfalls?
Thanks, Dietmar
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
[EMAIL PROTECTED] wrote:
> Hi all,
>
> I'm having a serious problem on my web server that I hope someone of you can shine
> some light on.
>
> I have a CGI script where users of our intranet can upload files through a form.
> Since two weeks, they get a blank screen on submission of the form
Hi all,
I'm having a serious problem on my web server that I hope someone of you can shine
some light on.
I have a CGI script where users of our intranet can upload files through a form.
Since two weeks, they get a blank screen on submission of the form and the file is not
uploaded.
The form
10 matches
Mail list logo