home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
historic
/
v941.tgz
/
icon.v941src.tar
/
icon.v941src
/
ipl
/
packs
/
idol
/
inverse.iol
< prev
next >
Wrap
Text File
|
2000-07-29
|
214b
|
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