Thursday, July 19, 2007

wasting it ....

well ..i am here again trying to blog..all my bloggy friends tell me to update ..but me is very very lazy.....there were a lot of things i wanted to blog about...but that one tiny lazy cog working in full swing rite within...
i mean if its lazy then, why does it even bother to move....

exams got over on 5th june...jees kya solid solid plans banaye thhe for the vacs....but again becoz of that cog...and the rainys ....evrything just got washed away

sitting at home now ...basically trying to count how many stars come out in the day and trying to find out why cant we fly kites in the nite....and why do some birds prefer V-formation ...why not a W or a A or a C...why V ....

and ofcourse as i am sitting at home....with nothing to do...eating tops the list...bongs like me can really consume monstrous proportions of food...food ...food ....its just never enough....lollzz..

then comes orkutting....most of the time slips away on this blessed website....dunno how...still a mystery

will try and continue to blog....

1 comment:

Anonymous said...

import java.math.BigInteger;

public class PSVM2 {
public static void main(String[] args) {

BigInteger trimmedPsAccountTypeValue = new BigInteger("17593259786240");// assuming
// this
// is
// decimal

System.out.println("before trim " + trimmedPsAccountTypeValue);
Long l = trimmedPsAccountTypeValue.longValue();
System.out.println(Long.toBinaryString(l));
String str = trimmedPsAccountTypeValue.toString(2);// binary string

int bitCount = str.length();

if (bitCount > 42) {
char[] arr = str.toCharArray();
char[] arr2 = new char[41];
for (int i = 0; i < 41; i++) {
arr2[i] = arr[i];
}

convertToDec(arr2);
//convertToDec(arr);
}
}

private static void convertToDec(char[] data) {

int pow= data.length;
String str ="";
double a =0;
BigInteger b= new BigInteger("0");
double e =0;
double d = 0;
for(int i=0 ; i<data.length ;i++){
str=""+data[i];
a = Integer.parseInt(str);
d = Math.pow(2,pow);
e+=d*a;
pow--;


}
Double dukkar = Double.parseDouble(""+e);
Long lambda = dukkar.longValue();
System.out.println(Long.toBinaryString(lambda));



System.out.println("e is "+e);


}
}