DevOTechS Forums
July 24, 2024, 08:12:35 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: DevOTechS forums
   Home   Help Search Calendar Login Register  
Pages: [1]
Author Topic: Huge Format "hi_bin"  (Read 15891 times)
Paijo Rx
Posts: 1

View Profile
« on: November 26, 2008, 05:33:48 AM »

i'm newbie in programming.
i was use HIME unit in Delphi 7 to convert Huge Integer to binary number. But when i use the huge format, hi_bin, the result doesn't right convertion.

sample of code that i used:

Hime.PutReg(1, Memo1.Lines.Text, hi_Dec);
Memo3.Lines.Text := Hime.GetReg(1, hi_Bin);

for simple integer like "4" will result right answer :  "00000000000000000000000000000100"
but when the input is big integer like "681625562253729757562" will result wrong answer : "000000000000000000000000001001001111001101110100011101010111011001110111011110000111100101111010"

i use huge integer in my thesis about steganography in gif image.

how to solve that problem...

please help me....

Posts: 9

View Profile WWW
« Reply #1 on: November 26, 2008, 10:16:46 AM »

The returned answer is correct. What did you expect it to be ?

Kind regards
HIME - Huge Integer Math and Encryption Library
NUMS - Arbitrary Precision Floating Point Math library
Pages: [1]
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!