From: Paul Eggert <eggert@cs.ucla.edu>
To: emacs-devel@gnu.org
Subject: Re: inverse of float-time?
Date: Wed, 11 Sep 2013 21:16:22 -0700 [thread overview]
Message-ID: <52314016.1070006@cs.ucla.edu> (raw)
In-Reply-To: <8738paog9i.fsf@gnu.org>
Sam Steingold wrote:
> what I want is for float time to be transparently accepted by
> all functions which accept list time.
On second thought I'm not sure I want to encourage that.
Floating-point loses information, due to rounding, and
this can cause glitches that can make floating-point
more trouble than it's worth.
For example, if gettimeofday reports 1378930161.099999786 seconds
after 1970, then current-time returns the exact representation
(21040 52721 99999 786000) but float-time rounds this to
1378930161.1. Sure, it's a small error, but the fact that
it's nonzero can cause problems.
next prev parent reply other threads:[~2013-09-12 4:16 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-11 17:39 inverse of float-time? Sam Steingold
2013-09-11 19:14 ` Paul Eggert
2013-09-11 19:31 ` Sam Steingold
2013-09-12 1:52 ` Leo Liu
2013-09-12 3:44 ` Sam Steingold
2013-09-12 4:16 ` Paul Eggert [this message]
2013-09-12 16:30 ` Ulrich Mueller
2013-09-17 20:03 ` Sam Steingold
2013-09-17 21:10 ` Paul Eggert
2013-09-12 3:07 ` SAKURAI Masashi
2013-09-12 3:42 ` Sam Steingold
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52314016.1070006@cs.ucla.edu \
--to=eggert@cs.ucla.edu \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.