Skip to content

normalized Float::MIN#5407

Merged
kares merged 1 commit intojruby:masterfrom
ahorek:float_min
Nov 12, 2018
Merged

normalized Float::MIN#5407
kares merged 1 commit intojruby:masterfrom
ahorek:float_min

Conversation

@ahorek
Copy link
Contributor

@ahorek ahorek commented Nov 3, 2018

https://ruby-doc.org/core-2.5.0/Float.html

The smallest positive normalized number in a double-precision floating point.

Usually defaults to 2.2250738585072014e-308.

If the platform supports denormalized numbers, there are numbers between zero and Float::MIN. 0.0.next_float returns the smallest positive floating point number including denormalized numbers.

    public static final double MIN_VALUE = 0x0.0000000000001P-1022; // 4.9e-324
    public static final double MIN_NORMAL = 0x1.0p-1022; // 2.2250738585072014E-308

@kares
Copy link
Member

kares commented Nov 12, 2018

oh nice, makes sense!

@kares kares merged commit 0d06c0f into jruby:master Nov 12, 2018
@kares kares added this to the JRuby 9.2.4.0 milestone Nov 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants