<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/test/ruby/test_float.rb, branch v3_4_9</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>[Bug #21163] Fix hexadecimal float conversion</title>
<updated>2025-03-10T19:04:54+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2025-03-04T01:22:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=e15a9044d7a9ee5435e7a6d19ef9ac46b50bb880'/>
<id>e15a9044d7a9ee5435e7a6d19ef9ac46b50bb880</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[Bug #20705] Update `strtod` implementation</title>
<updated>2024-10-05T14:29:42+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2024-09-05T13:08:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=d17edf3a170b733356836353508319443d12c53c'/>
<id>d17edf3a170b733356836353508319443d12c53c</id>
<content type='text'>
The absence of either the integer or fractional part should be
allowed.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The absence of either the integer or fractional part should be
allowed.
</pre>
</div>
</content>
</entry>
<entry>
<title>Preserve encoding in exception message of `Float`</title>
<updated>2024-09-07T07:34:28+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2024-09-07T07:34:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=f97332a3a3647b79a19a7ad81ab8e58bc8608399'/>
<id>f97332a3a3647b79a19a7ad81ab8e58bc8608399</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[Bug #20719] `Float` argument must be ASCII compatible</title>
<updated>2024-09-07T07:06:14+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2024-09-07T07:06:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=c1862cbb89a6bf42dcd07d92fe4f4bfeebca5775'/>
<id>c1862cbb89a6bf42dcd07d92fe4f4bfeebca5775</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix ceil when ndigits is large</title>
<updated>2024-07-30T12:21:28+00:00</updated>
<author>
<name>Peter Zhu</name>
<email>peter@peterzhu.ca</email>
</author>
<published>2024-07-26T15:10:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=a7167d0ceecc8eea7bdf87e66be16d16b0f417e7'/>
<id>a7167d0ceecc8eea7bdf87e66be16d16b0f417e7</id>
<content type='text'>
[Bug #20654]

This commit fixes Integer#ceil and Float#ceil when the number is
negative and ndigits is large such that 10**ndigits is a bignum.

Previously, it would return 0 in such cases. However, this would cause
unexpected behaviour such as:

    puts 1.ceil(-5) # =&gt; 100000
    puts 1.ceil(-10) # =&gt; 10000000000
    puts 1.ceil(-20) # =&gt; 0

This commit changes the last result so that it will return
100000000000000000000.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
[Bug #20654]

This commit fixes Integer#ceil and Float#ceil when the number is
negative and ndigits is large such that 10**ndigits is a bignum.

Previously, it would return 0 in such cases. However, this would cause
unexpected behaviour such as:

    puts 1.ceil(-5) # =&gt; 100000
    puts 1.ceil(-10) # =&gt; 10000000000
    puts 1.ceil(-20) # =&gt; 0

This commit changes the last result so that it will return
100000000000000000000.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix floor when ndigits is large</title>
<updated>2024-07-30T12:21:28+00:00</updated>
<author>
<name>Peter Zhu</name>
<email>peter@peterzhu.ca</email>
</author>
<published>2024-07-26T15:10:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=3af2a7fbe12e11bac7b26bd991d3d02349f47295'/>
<id>3af2a7fbe12e11bac7b26bd991d3d02349f47295</id>
<content type='text'>
[Bug #20654]

This commit fixes Integer#floor and Float#floor when the number is
negative and ndigits is large such that 10**ndigits is a bignum.

Previously, it would return 0 in such cases. However, this would cause
unexpected behaviour such as:

    puts -1.floor(-5) # =&gt; -100000
    puts -1.floor(-10) # =&gt; -10000000000
    puts -1.floor(-20) # =&gt; 0

This commit changes the last result so that it will return
-100000000000000000000.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
[Bug #20654]

This commit fixes Integer#floor and Float#floor when the number is
negative and ndigits is large such that 10**ndigits is a bignum.

Previously, it would return 0 in such cases. However, this would cause
unexpected behaviour such as:

    puts -1.floor(-5) # =&gt; -100000
    puts -1.floor(-10) # =&gt; -10000000000
    puts -1.floor(-20) # =&gt; 0

This commit changes the last result so that it will return
-100000000000000000000.
</pre>
</div>
</content>
</entry>
<entry>
<title>[Bug #19335] `Integer#remainder` should respect `#coerce` (#7120)</title>
<updated>2023-01-15T04:03:27+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2023-01-15T04:03:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=71ce7e1825c5b8fe08dd96cd77c6a379afd34256'/>
<id>71ce7e1825c5b8fe08dd96cd77c6a379afd34256</id>
<content type='text'>
Also `Numeric#remainder` should.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also `Numeric#remainder` should.</pre>
</div>
</content>
</entry>
<entry>
<title>numeric.c: Fix round_half_even for specific values (#7023)</title>
<updated>2022-12-26T12:02:47+00:00</updated>
<author>
<name>Kenta Murata</name>
<email>3959+mrkn@users.noreply.github.com</email>
</author>
<published>2022-12-26T12:02:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=9f2378959e5c5b5c39c9993f1a84e5304ff113d6'/>
<id>9f2378959e5c5b5c39c9993f1a84e5304ff113d6</id>
<content type='text'>
Handle the integert and the float parts separately in round_half_even
to prevent error occursions in floating point calculation.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Handle the integert and the float parts separately in round_half_even
to prevent error occursions in floating point calculation.</pre>
</div>
</content>
</entry>
<entry>
<title>Add invalid hexadecimal float tests</title>
<updated>2022-08-21T11:01:27+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2021-06-30T21:38:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=0cc989696e9a7d0386773d23aa64de8fc04ea9fe'/>
<id>0cc989696e9a7d0386773d23aa64de8fc04ea9fe</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix dtoa buffer overrun</title>
<updated>2022-04-12T12:30:49+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2021-06-30T21:39:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=d0a822eec524522d81ffc7da2bb1baf906b0318a'/>
<id>d0a822eec524522d81ffc7da2bb1baf906b0318a</id>
<content type='text'>
https://hackerone.com/reports/1248108
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://hackerone.com/reports/1248108
</pre>
</div>
</content>
</entry>
</feed>
