[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug: convert decimal to binary
From: |
rollor |
Subject: |
bug: convert decimal to binary |
Date: |
Mon, 14 Feb 2005 20:30:00 -0200 |
Hi,
is it a bug in bash?!
to convert great numbers: binary to decimal
# decimal do binary
$ echo "obase=2;9876543212345678909876" | bc -l
10000101110110100010010010001010110111010110110011100111000101000110\
110100
# binary to decimal
$ echo "$((2#10000101110110100010010010001010110111010110110011100111\
000101000110110100))"
7535132911068795316
$ echo $BASH_VERSION
2.05b.0(1)-release
Linux debian (sarge)
Best regards,
rol
__________________________________________________________________________
Acabe com aquelas janelinhas que pulam na sua tela.
AntiPop-up UOL - É grátis!
http://antipopup.uol.com.br/
- bug: convert decimal to binary,
rollor <=