Log in Sign up
3 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
  4. Aug 2022
  5. time.geekbang.org time.geekbang.org
    09 | 数值计算:注意精度、舍入和溢出问题-极客时间
    1
    1. caocao485 24 Aug 2022
      in Public
      如果我们希望只比较 BigDecimal 的 value,可以使用 compareTo 方法
      注意点 bigdecimal
    Visit annotations in context

    Tags

    • 注意点
    • bigdecimal

    Annotators

    • caocao485

    URL

    time.geekbang.org/column/article/213796
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