Skip to content

Commit 1887042

Browse files
committed
add 1/2 description to limitations.md file
1 parent b3a2d8b commit 1887042

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Diff for: doc/limitations.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Limitations
1+
# Limitations and Differences
22

33
The philosophy of mruby is to be a lightweight implementation of
44
the Ruby ISO standard. These two objectives are partially contradicting.
@@ -13,6 +13,15 @@ This document is collecting these limitations.
1313
This document does not contain a complete list of limitations.
1414
Please help to improve it by submitting your findings.
1515

16+
17+
## ```1/2``` gives ```0.5```
18+
19+
Since mruby does not have ```Bignum```, bigger integers are represented
20+
by ```Float``` numbers. To enhace interoperability between ```Float```
21+
and ```Float```, mruby provides ``Float#upto``` and other iterationg
22+
methods for ```Float`` class. As a side effect, ```1/2``` gives ```0.5```
23+
not ```0```.
24+
1625
## ```Array``` passed to ```puts```
1726

1827
Passing an Array to ```puts``` results in different output.

0 commit comments

Comments
 (0)