Re: Converting milliseconds to seconds
- From: Ilya Zakharevich <nospam-abuse@xxxxxxxxx>
- Date: Wed, 16 Jan 2008 01:05:09 +0000 (UTC)
[A complimentary Cc of this posting was NOT [per weedlist] sent to
Peter J. Holzer
<hjp-usenet2@xxxxxx>], who wrote in article <slrnfoph3u.mma.hjp-usenet2@xxxxxxxxxxxxxxx>:
But I think Ilya is a barking up the wrong tree here:
Well, at least it was not the intent. Sorry if my writing lead you to
such a conclusion...
This is just a reflection of a sorry state of Perl documentation.
There is NO OTHER WAY to round-to-0 but to use int().
I reread what I wrote, and I STILL see no ambiguity in my original
post; what I objected to is "two", not "one", in the following fragment
int Returns the integer portion of EXPR. If EXPR is
omitted, uses $_. You should not use this function
for rounding: one because it truncates towards 0,
and two because machine representations of floating
point numbers can sometimes produce counterintuitive
results.
Yours,
Ilya
.
- Follow-Ups:
- Re: Converting milliseconds to seconds
- From: Peter J. Holzer
- Re: Converting milliseconds to seconds
- References:
- Converting milliseconds to seconds
- From: Ilya Zakharevich
- Re: Converting milliseconds to seconds
- From: Ilya Zakharevich
- Re: Converting milliseconds to seconds
- From: Jürgen Exner
- Re: Converting milliseconds to seconds
- From: Peter J. Holzer
- Converting milliseconds to seconds
- Prev by Date: Chat client/server print failed
- Next by Date: FAQ 8.16 How can I sleep() or alarm() for under a second?
- Previous by thread: Re: Converting milliseconds to seconds
- Next by thread: Re: Converting milliseconds to seconds
- Index(es):
Relevant Pages
|