[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-edu
Subject:    Re: [kde-edu]: unified kde-edu style?
From:       Dominique Devriese <fritmebufstek () pandora ! be>
Date:       2002-08-08 13:29:52
[Download RAW message or body]

Uwe Thiem <uwe@polytechnic.edu.na> writes:

> On Thursday 08 August 2002 12:36, Dominique Devriese wrote:
> > there's also an algorithm to convert decimal numbers of infinite
> > length, but with a repeating part ( which means the decimal
> > representations of all rational numbers ) into fractions...  I think
> > the idea was to divide the repeating part by a number which you write
> > down as x 9's where x is the length of the repeating part ( that's the
> > best i can explain it in english :). E.g. 0,111... would become 1/9
> > .  0.1212... would become 12/99 etc.  This is the way they explained
> > it to us in high school, i'm sure there's an easy way to write this
> > down in code...
> 
> With a being your periodical decimal number and n being the length of the 
> period, you multiply a by 10^n and then subtract a:
> 
> a = 0.1111111
> 
> 10a = 1.1111111
> 
> 9a = 1
> a = 1 / 9
> 
> 
> 
> 
> b = 0.213213213213
> 1000b = 213.213213213213
> 999b = 213
> b = 213 / 999
> 
> Uwe
>  

right, at least i was close :)
cya
domi
-- 
Q: What's the difference between Windows 95 and a highly destructive virus?
A: About 90 MB of hard disk space.
_______________________________________________
kde-edu mailing list
kde-edu@mail.kde.org
http://mail.kde.org/mailman/listinfo/kde-edu
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic