[Haskell-cafe] Binary constants in Haskell

Dan Weston westondan at imageworks.com
Wed Oct 24 16:23:02 EDT 2007


Prelude> read "0o232" :: Int
154
Prelude> read "0xD29A" :: Int
53914
Prelude>

Maurí­cio wrote:
> Hi,
> 
> Are there binary constants in Haskell, as
> we have, for instance, 0o232 for octal and
> 0xD29A for hexadecimal?
> 
> Thanks,
> Maurício
> 
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
> 
> 




More information about the Haskell-Cafe mailing list