Log in Sign up
2 Matching Annotations
  1. Apr 2023
  2. ruby-doc.org ruby-doc.org
    class BigDecimal - bigdecimal: Ruby Standard Library Documentation
    1
    1. TylerRick 24 Apr 2023
      in Public
      ruby: BigDecimal
    Visit annotations in context

    Tags

    • ruby: BigDecimal

    Annotators

    • TylerRick

    URL

    ruby-doc.org/3.2.2/exts/bigdecimal/BigDecimal.html
  3. stackoverflow.com stackoverflow.com
    How to get nth root of a number in Ruby?
    1
    1. TylerRick 24 Apr 2023
      in Public
      You can do an Nth root by raising to a fractional power. For example, the 4th root of 625 is 5. (BigDecimal(625)**(1.0/4.0)).to_f # => 5.0
      ruby: BigDecimal
    Visit annotations in context

    Tags

    • ruby: BigDecimal

    Annotators

    • TylerRick

    URL

    stackoverflow.com/questions/21156915/how-to-get-nth-root-of-a-number-in-ruby
Share:
Group. Only group members will be able to view this annotation.
Only me. No one else will be able to view this annotation.
Hypothes.is
  • About
  • Blog
  • Bioscience
  • Education
  • Jobs
  • Help
  • Contact
  • Terms of Service
  • Privacy Policy