*X-seq*: zsh-users 26609*From*: Ray Andrews <rayandrews@xxxxxxxxxxx>*To*: zsh-users@xxxxxxx*Subject*: Re: arithmetic anomaly*Date*: Fri, 26 Mar 2021 07:36:21 -0700*Archived-at*: <https://zsh.org/users/26609>*Archived-at*: <http://www.zsh.org/sympa/arcsearch_id/zsh-users/2021-03/6d70bc8d-73d3-7866-6485-ee89dafdebc9%40eastlink.ca>*In-reply-to*: <CAN=4vMpq2ECpWkFt5mAO1rwCGp0Q+UYCxnPr5kT6fReXhycSZQ@mail.gmail.com>*List-id*: <zsh-users.zsh.org>*References*: <0227b30d-4f09-2c8b-1248-557859d875ce@eastlink.ca> <91303-1616717760.288585@Iyj2.F9RA.VD0P> <cb16b987-9521-e2b7-3bbc-8b71677b913c@eastlink.ca> <CAN=4vMpq2ECpWkFt5mAO1rwCGp0Q+UYCxnPr5kT6fReXhycSZQ@mail.gmail.com>

On 2021-03-26 3:35 a.m., Roman Perepelitsa wrote:

Maybe this will help:https://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html<https://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html>

Good to know!

Ray's Algorithm fractional: Level: 1: win: 1 / 1 Level: 10: win: 6513215599 / 10000000000

7602830066897486524892436064552875964380756727929631216242621046676674030227216977589219271

4706251868027512415973882408182135734368278484639385041047239877871023591066789981811181813 306167128854888448 Level: 1000: win: inf / inf Level: 10000: win: inf / inf Level: 100000: win: inf / inf Level: 1000000: win: inf / inf

Understanding how floating point numbers work is very useful. It'svirtually mandatory when writing numerical computation code. None ofthis is specific to zsh.

**Follow-Ups**:**Re: arithmetic anomaly***From:*Roman Perepelitsa

**References**:**arithmetic anomaly***From:*Ray Andrews

**Re: arithmetic anomaly***From:*Oliver Kiddle

**Re: arithmetic anomaly***From:*Ray Andrews

**Re: arithmetic anomaly***From:*Roman Perepelitsa

Messages sorted by: Reverse Date, Date, Thread, Author