Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
13
Task/Arithmetic-Rational/Lingo/arithmetic-rational-3.lingo
Normal file
13
Task/Arithmetic-Rational/Lingo/arithmetic-rational-3.lingo
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
f = frac(2,3)
|
||||
put f.toString()
|
||||
-- "2/3"
|
||||
|
||||
-- fractions are normalized on the fly
|
||||
f = frac(4,6)
|
||||
put f.toString()
|
||||
-- "2/3"
|
||||
|
||||
-- casting integer to frac
|
||||
f = frac(23)
|
||||
put f.toString()
|
||||
-- "23/1"
|
||||
Loading…
Add table
Add a link
Reference in a new issue