Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update:浮点数之间的等值判断,基本数据类型不能用==来比较,包装数据类型不能用equals来判断。 #1523

Merged
merged 1 commit into from
Jun 2, 2022

Conversation

TomYule
Copy link
Contributor

@TomYule TomYule commented Sep 16, 2019

update:浮点数采用“尾数+阶码”的编码方式,类似于科学计数法的“有效数字+指数”的表示方式。二进制无法精确表示大部分的十进制小数,具体原理参考《码出高效》

浮点数采用“尾数+阶码”的编码方式,类似于科学计数法的“有效数字+指数”的表示方式。二进制无法精确表示大部分的十进制小数,具体原理参考《码出高效》
@codecov-io
Copy link

codecov-io commented Sep 16, 2019

Codecov Report

Merging #1523 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1523      +/-   ##
==========================================
+ Coverage   47.63%   47.65%   +0.01%     
==========================================
  Files         866      866              
  Lines       36243    36243              
  Branches     7831     7831              
==========================================
+ Hits        17266    17270       +4     
+ Misses      16692    16689       -3     
+ Partials     2285     2284       -1
Impacted Files Coverage Δ
src/org/nutz/lang/util/FloatRange.java 80% <100%> (ø) ⬆️
src/org/nutz/lang/random/ListRandom.java 94.44% <0%> (+22.22%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e76e2fc...7c716f6. Read the comment docs.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@wendal wendal merged commit ad0a467 into nutzam:master Jun 2, 2022
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.

None yet

4 participants