View previous topic :: View next topic |
Author |
Message |
Skit3000 Admin Team
Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Wed Jan 08, 2003 7:43 pm Post subject: @fdiv() |
|
|
Does anybody know if it is possible to use @fdiv() so that it gives more then 5000 characters after the comma (or dot) ? I have to give an answer to the question: What is the exact answer of 13155187 / 13417 ? There are around the 5000 numbers after the comma...
I want to know this because I try to do a kind of 'hacking' challenge, in which this kind of questions must be answered.
Btw. Some other programming languages can't do the same either... Maybe it's just a Windows 'feature'.... |
|
Back to top |
|
|
vdsalchemist Admin Team
Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Thu Jan 09, 2003 3:02 am Post subject: |
|
|
Hi Skit,
To try and answer your question...
Quote: | I have to give an answer to the question: What is the exact answer of 13155187 / 13417 ? | is 980.486472385779235298501900573899 according to the Windows 98 Calculator... Now for VDS the full resolution of this number is not possible with @fdiv() this is because @fdiv() uses a float variable type and a float only holds 4 bytes or 32bits of information. It is either that or S.A.D.E. is formating the output to only 15 numbers after the comma or dot before it starts using scientific notation or rounding... Most computer languages have a range limit of: -1.79769313486232E308 to -4.94065645841247E-324 for negative values and from 4.94065645841247E-324 to 1.79769313486232E308 for positive values for Double precision floating points. The double variable type is a 64bit real number. _________________ Home of
Give VDS a new purpose!
|
|
Back to top |
|
|
Skit3000 Admin Team
Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Thu Jan 09, 2003 4:44 pm Post subject: |
|
|
Thank you for your answer! Can you also tell me a language which can use that 64-bit number? |
|
Back to top |
|
|
vdsalchemist Admin Team
Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Thu Jan 09, 2003 4:50 pm Post subject: |
|
|
Hi Skit,
C/C++ can do this...I think Java can do it too. I am not sure if Delphi can but I do know that Visual Basic cannot... Also when I post the latest revision of my Gadget.dll you will be able to do this as well. In the previous versions of Gadget.dll I limited the percision of floats and Doubles to make them compatible with VDS floating point functions but recently I have decided to open them up and leave them at their full percision due to the need in some of the Win32 API functions to give more percise return values for these data types. Note: you will not be able to use the values with the VDS floating point math functions. You will have to use the C runtime function equivalents... I will be providing the Declare commands to use these functions... _________________ Home of
Give VDS a new purpose!
|
|
Back to top |
|
|
Skit3000 Admin Team
Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Thu Jan 09, 2003 6:15 pm Post subject: |
|
|
Can you post an example of how to do it with Gadget? |
|
Back to top |
|
|
|