Re: Integers
| Newsgroups | gmane.comp.lang.ocaml.beginners |
|---|---|
| Message-ID | <[email protected]> |
Le Wed, 16 Jul 2014 01:58:44 +0200, "Nicolas FRANCOIS [email protected] [ocaml_beginners]" <[email protected]> a écrit : > Hi. > > I'd like to work on a double dummy solver for bridge. For efficiency, > I code cards in integers, 1 for the 2, 2 for the 3... 4096 for the > ace. > > Is there a way to directly write those numbers in binary in the code, > like in C ? Something like 0b100 for example ? > > I didn't see this in the docs (which doesn't mean it isn't there, of > course :-) > > Thanks for your answers. > > \bye > Sorry, I just found the answer in the "Lexical conventions" (http://caml.inria.fr/pub/docs/manual-ocaml/lex.html) \bye -- Nicolas FRANCOIS | /\ http://nicolas.francois.free.fr | |__| X--/\\ We are the Micro$oft. _\_V Resistance is futile. You will be assimilated. darthvader penguin