Re: Converting milliseconds to seconds



[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
.



Relevant Pages

  • Re: RAD vs. performance
    ... | Int of int ... | Plus of expr * expr ... could an IDE highlight erroneous declarations? ... I've never seen an IDE that would help with implicit casting bugs. ...
    (comp.lang.misc)
  • Re: variable help
    ... $ perldoc -f int ... int Returns the integer portion of EXPR. ... And you might want to note that submitting a *bad* answer to the beginners ...
    (perl.beginners)
  • Re: NFS: NFS3 lookup fails if creating a file with O_EXCL & multiple mountpoints in pathname
    ... The intent information as it stands today should really only be applied ... +static inline unsigned int lookup_check_intent ... * Inode and filehandle revalidation for lookups. ... int nfs_lookup_verify_inode(struct inode *inode, struct nameidata *nd) ...
    (Linux-Kernel)
  • Re: (i++ * i++)
    ... Nils Petter Vaskinn wrote: ... trivially modified to account for any conceivable intent of the original ... : int i = 5; ... Still undefined behavior. ...
    (comp.lang.cpp)
  • Re: SML macros
    ... >> I've written a little rewrite system in SML. ... >> representing symbols as ints looked up via a symbol table rather than as ... Seq of expr * expr list ... | Int of int ...
    (comp.lang.functional)