DevOTechS Forums
March 28, 2024, 01:08:15 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]
  Print  
Author Topic: Huge Format "hi_bin"  (Read 15114 times)
Paijo Rx
Newbie
*
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....



Logged
Admin
Administrator
Newbie
*****
Posts: 9



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

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

Kind regards
Eddy
Logged

www.devotechs.com
HIME - Huge Integer Math and Encryption Library
NUMS - Arbitrary Precision Floating Point Math library
Pages: [1]
  Print  
 
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!