Thanks for the answer greathouse
And to Hurkyl I used Java's BigDecimal class to calculate it. So no floats or doubles used.
And yes I meant precise (English is not my native language). I , as you said, am translating the decimal string directly into binary. I'm dividing the string with 2^n and...