Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Decimal Places
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
qwert




PostPosted: Thu Oct 28, 2010 9:06 am   Post subject: Decimal Places

hey

i was wondering how you could create a division statement that would give you many decimal places

like 1000+

or how to make a program where you can specify the decimal place

or

where you can have an infinite number of decimals without rounding

any help would be appreciated

the largest number of decimals that we have achieved is an 8 bit chunk

equal to roughly 256 decimal places

using turing 4.1.1
Sponsor
Sponsor
Sponsor
sponsor
A.J




PostPosted: Thu Oct 28, 2010 1:56 pm   Post subject: RE:Decimal Places

Well, you could create a program that does the division like you would on paper (i.e. the 'long' division method). In that way, you can get how many ever decimal places you want (well, until there's a cycle).
DtY




PostPosted: Thu Oct 28, 2010 5:00 pm   Post subject: Re: RE:Decimal Places

A.J @ Thu Oct 28, 2010 1:56 pm wrote:
Well, you could create a program that does the division like you would on paper (i.e. the 'long' division method). In that way, you can get how many ever decimal places you want (well, until there's a cycle).
Also, storing infinite amounts of data is really worthwhile, too much storage.
SNIPERDUDE




PostPosted: Fri Oct 29, 2010 12:10 am   Post subject: RE:Decimal Places

If one is just curious about the answer, I'd use that function and have it store it piece at a time in a text file.
mirhagk




PostPosted: Sat Nov 06, 2010 11:47 pm   Post subject: RE:Decimal Places

I worked on a fraction calculator a while ago, it allowed for 100% right answers, and they could be evalauted to as many decimals as you want to display or w/e
DtY




PostPosted: Sun Nov 07, 2010 8:10 am   Post subject: Re: RE:Decimal Places

SNIPERDUDE @ Fri Oct 29, 2010 12:10 am wrote:
If one is just curious about the answer, I'd use that function and have it store it piece at a time in a text file.
It wouldn't really matter, since every division of rational numbers will produce a rational number, which must either either terminates or repeat in decimal form.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 6 Posts ]
Jump to:   


Style:  
Search: