home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
OL.LZH
/
IDOL.LZH
/
INVERSE.IOL
< prev
next >
Wrap
Text File
|
1991-07-18
|
226b
|
13 lines
class inverse:fraction(d)
initially
self.n := 1
end
procedure main()
x := inverse(2)
y := fraction(3,4)
z := x$times(y)
write("The decimal equivalent of ",z$asString(),
" is ",trim(z$asReal(),'0'))
end