home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programmer 7500
/
MAX_PROGRAMMERS.iso
/
CLIPPER
/
MISC
/
BIPL.ZIP
/
IDOL.ZIP
/
INVERSE.IOL
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
Text File
|
1991-12-30
|
226 b
|
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