From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id HAA13820; Sat, 1 Feb 2003 07:23:19 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id HAA13626 for ; Sat, 1 Feb 2003 07:23:18 +0100 (MET) Received: from speakeasy.org (dsl081-017-141.sea1.dsl.speakeasy.net [64.81.17.141]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h116NGP08244 for ; Sat, 1 Feb 2003 07:23:17 +0100 (MET) Received: (from shawnw@localhost) by speakeasy.org (8.10.1/8.10.1) id h116ZMc10514 for caml-list@inria.fr; Fri, 31 Jan 2003 22:35:22 -0800 Date: Fri, 31 Jan 2003 22:35:21 -0800 From: Shawn Wagner To: caml-list@inria.fr Subject: [Caml-list] Finding the sign of a float Message-ID: <20030131223521.T22850@speakeasy.org> Mail-Followup-To: caml-list@inria.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk I'm looking for a way, in pure ocaml without having to bail out to C, to tell if a float is negative or not. Just using x < 0.0 won't work, as I need to be able to tell the difference between -0.0 and +0.0. This is for ocaml versions of the C copysign and signbit functions. Any suggestions? -- Shawn Wagner shawnw@speakeasy.org ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners