Re: BIN()
- From: Michael Fuhr <mike(at)fuhr(dot)org>
- To: Tino Wildenhain <tino(at)wildenhain(dot)de>
- Cc: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>, Hackers <pgsql-hackers(at)postgresql(dot)org>
- Subject: Re: BIN()
- Date: Wed, 30 Nov 2005 00:03:11 -0700
- Message-id: <20051130070311(dot)GA73957(at)winnie(dot)fuhr(dot)org>
On Wed, Nov 30, 2005 at 07:42:36AM +0100, Tino Wildenhain wrote:
> In python, I usually go like this:
In Ruby (and therefore in PL/Ruby) you could do this:
10.to_s(2)
=> "1010"
10.to_s(16)
=> "a"
--
Michael Fuhr
Home |
Main Index |
Thread Index