File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 1
- # Limitations
1
+ # Limitations and Differences
2
2
3
3
The philosophy of mruby is to be a lightweight implementation of
4
4
the Ruby ISO standard. These two objectives are partially contradicting.
@@ -13,6 +13,15 @@ This document is collecting these limitations.
13
13
This document does not contain a complete list of limitations.
14
14
Please help to improve it by submitting your findings.
15
15
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
+
16
25
## ``` Array ``` passed to ``` puts ```
17
26
18
27
Passing an Array to ``` puts ``` results in different output.
You can’t perform that action at this time.
0 commit comments