From: Nicolas Ratier <nicolas.ratier@femto-st.fr>
To: caml-list <caml-list@inria.fr>
Subject: [Caml-list] int of infinity = 0
Date: Tue, 22 May 2018 15:19:01 +0200 [thread overview]
Message-ID: <52412de6-948f-963c-059d-99bb7dab8f6d@femto-st.fr> (raw)
In-Reply-To: <CA+mNMois3ia+4JbgfRsJ2E86argyN9K7ZRrv-zXBkZS2W3zz5A@mail.gmail.com>
Hi,
Dangerous behaviour ...
# int_of_float (infinity);;
- : int = 0
# int_of_float (neg_infinity);;
- : int = 0
# 1+int_of_float (infinity);;
- : int = 1
Nicolas
next prev parent reply other threads:[~2018-05-22 13:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-14 14:22 [Caml-list] Functional Programming @ DFINITY Mark Rafferty
2018-05-22 13:19 ` Nicolas Ratier [this message]
2018-05-23 6:55 ` [Caml-list] int of infinity = 0 rixed
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=52412de6-948f-963c-059d-99bb7dab8f6d@femto-st.fr \
--to=nicolas.ratier@femto-st.fr \
--cc=caml-list@inria.fr \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox