diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2016-02-11 16:50:01 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2016-02-11 16:50:01 +0900 |
| commit | 18870428bc4489d25ec89c973fe1d8e67250c29c (patch) | |
| tree | 57a1b16e8a5235e9e8df1aaff3da4caf23c7f679 /doc/limitations.md | |
| parent | b3a2d8bec50dfd3c7d756afc8c0c9a25c017cd0a (diff) | |
| download | mruby-18870428bc4489d25ec89c973fe1d8e67250c29c.tar.gz mruby-18870428bc4489d25ec89c973fe1d8e67250c29c.zip | |
add 1/2 description to limitations.md file
Diffstat (limited to 'doc/limitations.md')
| -rw-r--r-- | doc/limitations.md | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/doc/limitations.md b/doc/limitations.md index 64054fcc6..dd153f9ce 100644 --- a/doc/limitations.md +++ b/doc/limitations.md @@ -1,4 +1,4 @@ -# Limitations +# Limitations and Differences The philosophy of mruby is to be a lightweight implementation of the Ruby ISO standard. These two objectives are partially contradicting. @@ -13,6 +13,15 @@ This document is collecting these limitations. This document does not contain a complete list of limitations. Please help to improve it by submitting your findings. + +## ```1/2``` gives ```0.5``` + +Since mruby does not have ```Bignum```, bigger integers are represented +by ```Float``` numbers. To enhace interoperability between ```Float``` +and ```Float```, mruby provides ``Float#upto``` and other iterationg +methods for ```Float`` class. As a side effect, ```1/2``` gives ```0.5``` +not ```0```. + ## ```Array``` passed to ```puts``` Passing an Array to ```puts``` results in different output. |
