- 14 Jan, 2019 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
Use `%g` instead of `%e` for float representation in dump format
-
Yukihiro "Matz" Matsumoto authored
Improve compatibility to CRuby for `Float#to_s`
-
- 13 Jan, 2019 2 commits
-
-
KOBAYASHI Shuji authored
For conforming C standard.
-
KOBAYASHI Shuji authored
Bfore: Float::INFINITY.to_s #=> "inf" 50.0.to_s #=> "50" 1e20.to_s #=> "1e+20" After / CRuby: Float::INFINITY.to_s #=> "Infinity" 50.0.to_s #=> "50.0" 1e20.to_s #=> "1.0e+20"
-
- 12 Jan, 2019 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
Use `__send__` instead of `send`; ref #4207
-
KOBAYASHI Shuji authored
-
- 11 Jan, 2019 1 commit
-
-
KOBAYASHI Shuji authored
`%g` use shorter representation than `%e`.
-
- 10 Jan, 2019 3 commits
-
-
Yukihiro "Matz" Matsumoto authored
Remove duplicate code in numeric.c
-
KOBAYASHI Shuji authored
-
Yukihiro "Matz" Matsumoto authored
Change the order of "expected" and "actual" in test
-
- 09 Jan, 2019 2 commits
-
-
KOBAYASHI Shuji authored
-
Yukihiro "Matz" Matsumoto authored
-
- 08 Jan, 2019 6 commits
-
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
Fix dump/load float leteral evaluate to infinity
-
Yukihiro "Matz" Matsumoto authored
Add `Time` object creation API
-
KOBAYASHI Shuji authored
Example: # example.rb p(2e308) p(-2e308) Good: $ bin/mruby example.rb inf -inf Bad: $ bin/mrbc example.rb $ bin/mruby -b example.mrb 0 -0 Cause: Float infinity representation is `inf` on dump and it is converted by corresponding `String#to_f` on load. Treatment: - Introduce new representations (`i`: +infinity, `I`: -infinity) - Allow old representations (`inf`, `-inf`, `infinity`, `-infinity`) too - Raise error for unknown representations (use corresponding `Kernel#Float`)
-
take-cheeze authored
-
- 07 Jan, 2019 1 commit
-
-
Yukihiro "Matz" Matsumoto authored
Fix `0.0` and `-0.0` handling.
-
- 06 Jan, 2019 2 commits
-
-
KOBAYASHI Shuji authored
Fix the following issue: Good: $ bin/mruby -e 'p(-0.0)' #=> "-0" Bad: $ bin/mruby -e 'a=0.0; p(-0.0)' #=> "0"
-
Yukihiro "Matz" Matsumoto authored
Add `assert_same` and `assert_not_same`
-
- 05 Jan, 2019 1 commit
-
-
KOBAYASHI Shuji authored
-
- 04 Jan, 2019 8 commits
-
-
Yukihiro "Matz" Matsumoto authored
Integrate mrblib/float.rb into src/numeric.c
-
KOBAYASHI Shuji authored
- Avoid hack for `MRB_WITHOUT_FLOAT` in build scripts - Avoid runtime dispatch for `MRB_WITHOUT_FLOAT`
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
Add enumerator chain feature (CRuby-2.6 compatible)
-
Yukihiro "Matz" Matsumoto authored
range: Refactor range.h/range.c
-
Yukihiro "Matz" Matsumoto authored
Add proc composition feature (CRuby-2.6 compatible)
-
Yukihiro "Matz" Matsumoto authored
pack: Remove redundant float check in pack_utf8()
-
- 03 Jan, 2019 8 commits
-
-
KOBAYASHI Shuji authored
Functions order, name, linkage and so on.
-
KOBAYASHI Shuji authored
The argument is converted to fixnum before calling.
-
dearblue authored
-
dearblue authored
-
dearblue authored
- Enumerator::Chain - Enumerable#chain - Enumerable#+
-
dearblue authored
- Proc#<< and Proc#>> - Method#<< and Method#>>
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
- 02 Jan, 2019 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
io: Skip TTY test for environments that TTY device is unavailable.
-
Yukihiro "Matz" Matsumoto authored
range: Embed edges in RRange on boxing environment.
-