Integers

"Nicolas FRANCOIS [email protected] [ocaml_beginners]" <[email protected]>
Newsgroups gmane.comp.lang.ocaml.beginners
Message-ID <[email protected]>
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

-- 

Nicolas FRANCOIS                      |  /\ 
http://nicolas.francois.free.fr       | |__|
				      X--/\\
We are the Micro$oft.		        _\_V
Resistance is futile.		    
You will be assimilated.         darthvader penguin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.