forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


@fdiv()

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Miscellaneous
View previous topic :: View next topic  
Author Message
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Wed Jan 08, 2003 7:43 pm    Post subject: @fdiv() Reply with quote

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'.... Smile
Back to top
View user's profile Send private message
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Thu Jan 09, 2003 3:02 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Thu Jan 09, 2003 4:44 pm    Post subject: Reply with quote

Thank you for your answer! Can you also tell me a language which can use that 64-bit number?
Back to top
View user's profile Send private message
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Thu Jan 09, 2003 4:50 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Thu Jan 09, 2003 6:15 pm    Post subject: Reply with quote

Can you post an example of how to do it with Gadget?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Miscellaneous All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group