From: sto.mar@... Date: 2017-02-25T09:03:58+00:00 Subject: [ruby-core:79771] [Ruby trunk Bug#13251] [DOC] Add rdoc for Integer.sqrt Issue #13251 has been updated by Marcus Stollsteimer. Two clarifying questions: Is it confirmed that using Floats will only give wrong results that are too large? See e.g. the case of cube roots: ``` ruby 64 ** (1.0/3) # => 3.9999999999999996 (64 ** (1.0/3)).to_i # => 3 ``` I didn't find (small) examples for sqrt similiar to this (yet?), but maybe they exist. Does Float behave the same on all platforms and architectures? (Always same IEEE standard?) ---------------------------------------- Bug #13251: [DOC] Add rdoc for Integer.sqrt https://bugs.ruby-lang.org/issues/13251#change-63197 * Author: Marcus Stollsteimer * Status: Assigned * Priority: Normal * Assignee: Marcus Stollsteimer * Target version: * ruby -v: ruby 2.5.0dev (2017-02-24 trunk 57707) [x86_64-linux] * Backport: 2.2: DONTNEED, 2.3: DONTNEED, 2.4: DONTNEED ---------------------------------------- Nobu, I would offer to add documentation for Integer.sqrt, feature #13219 (r57705). I'd like to prepare a patch and eventually try to commit it myself. I'm not sure yet when to open issues for documentation and when to simply commit; I would be glad about any feedback. -- https://bugs.ruby-lang.org/ Unsubscribe: