Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding
You last visited: Today at 06:17

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



I have a coding math questions. Help is welcome

Discussion on I have a coding math questions. Help is welcome within the General Coding forum part of the Coders Den category.

Reply
 
Old   #1



 
MMOPerfection©'s Avatar
 
elite*gold: 964
Join Date: Mar 2008
Posts: 1,550
Received Thanks: 310
I have a coding math questions. Help is welcome

Hey I am currently working on a game engine for school and I am having issues with mathematics that involve Large significant digits such as pi.

I know the biggest number of significant digits I can find would be either float or double which holds like 18 significant digits I believe if I am not mistaken.

Does anyone know if there is another type that holds more. perhaps 200-500 significant digits?

the closest I could find was this


But it is a paid product and only supports a trial period. Since this is only for education I want to avoid spending extra cash for school.

Any help or tips is more then welcome. THANKS
MMOPerfection© is offline  
Old 05/22/2011, 23:30   #2
 
xNopex's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 827
Received Thanks: 471
I think there is no standard type which holds such vast amounts of digits. You have to create an own class that represents your type. In this class you can save the digits for example in an array. Of course you have to implement methods which will provide basic arithmetic functions like addition, subtracting, multiplication, etc. Maybe it is not a perfect solution but you should be able to save 500 digits with your class.
xNopex is offline  
Old 05/23/2011, 00:52   #3



 
MMOPerfection©'s Avatar
 
elite*gold: 964
Join Date: Mar 2008
Posts: 1,550
Received Thanks: 310
Do you happen to know any documentation I can read to assist in this? Best I can find is string but it doesn't do any type of math so its hard to get a good grasp of it.

that and theres no good commenting.
MMOPerfection© is offline  
Reply


Similar Threads Similar Threads
[Quest]math.cos und math.sin
08/22/2010 - Metin2 Private Server - 10 Replies
Hallo, anscheinend kennt Metin2 die Funktionen math.cos und math.sin nicht, gibt es trotzdem eine Möglichkeit die irgendwie zu benutzen? (Für den DT ;))
Math/var help
07/02/2009 - CO2 Private Server - 1 Replies
Ok simplifying this post alot. How do I transfer things already loaded into the source from a database into the useitem area? Maybe I'm over complicating things but I am not able to do it.. In my Database.cs I have Struct.SPoints Port = new Struct.SPoints(); loading in things from the database. I need a way to apply those values to a similar code in UseItem.cs where I have my public static void ScrollPointTele(int PointId, int MapEnd, int PointX, int PointY, ClientSocket CSocket)
Any good at math
12/11/2006 - Eudemons Online - 3 Replies
Ok I posted a mesage earlier saying im wanting to hack this game. If you want email me for the VB code and i will send you a sample program (not compiled so its 100% virus free) to help you adjust game values. My program will be more usefull however when I find the real address for the character position. Now in replies to my earlier posts some dummy tried saying rotate 45 degrees bla bla bla. I've tried this and still havent got it right. Besides if you notice as you walk around there are no...



All times are GMT +1. The time now is 06:18.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.