w10schools
Login Register
  • Home
  • Tutorials
    • HTML, CSS
      • HTML, HTML5
      • CSS, CSS3
    • XML
    • JavaScript, AJAX
    • PHP
    • Ruby on Rails
      • Ruby
      • Rails
    • ASP.NET
      • ASP
      • C# .NET
    • Java
      • JSP
    • Databases
      • MySQL
      • MSSQL Server
      • Oracle
    • Web Server
      • Windows
      • Linux
      • Apache
      • IIS
    • Design
      • Dreamweaver
      • Flash
      • Photoshop
      • Fireworks
      • CorelDRAW
      • Illustrator
  • References
    • HTML
      • Bootstrap
    • CSS
      • CSS Selectors
      • Sass
    • JavaScript
    • Mobile Apps
      • Cordova
    • Ruby on Rails
      • Ruby
      • Rails
    • PHP
      • Function
      • Language
      • CodeIgniter
      • Phalcon
      • PHPUnit
      • Symfony
      • Drupal
      • Yii
      • Laravel
    • Perl
      • Perl
    • Python
      • Python
      • Django
      • NumPy
      • Pandas
      • scikit-image
      • scikit-learn
      • Statsmodels
      • Matplotlib
    • Lua
      • Lua
    • C, C++
      • C
      • C++
    • Server
      • Docker
      • Apache HTTP Server
      • Nginx
    • Database
      • PostgreSQL
    • Big Data
      • TensorFlow
    • Game Development
      • Phaser
      • LÖVE
  • Articles
    • News
    • General
      • Website Promotion
      • Online Advertising
      • Make Money Online
    • Editorials
    • Interviews
    • Web Roundups
  • Resources
    • Design
      • Fonts
      • Graphics
      • Vectors
      • Templates
      • UI (User Interface)
      • Brushes
      • Patterns, Backgrounds
      • Textures
    • Web Development
      • HTML, CSS
      • XML
      • JavaScript, AJAX
      • Ruby on Rails
      • PHP
      • Java
      • .NET
      • Python
      • Perl
      • Flash
    • Mobile Application Development
      • Mobile Development Tools
      • Swift
    • Online Services
      • Online Storage
      • Web Hosting
  • Tools
    • Generators
  • Bulletin
  • Posts
doc_ruby_on_rails
doc_ruby_on_rails


+

big + other â Numeric Instance Public methods Adds big and other, returning the result.

**

big ** exponent â numeric Instance Public methods Raises big to the exponent power (which may be an integer, float, or anything that will coerce to a number). The result may be a Fixnum, Bignum, or Float 123456789 ** 2 #=> 15241578750190521 123456789 ** 1.2 #=> 5126464716.09932 123456789 ** -2 #=> 6.5610001194102e-17 power!

*

big * other â Numeric Instance Public methods Multiplies big and other, returning the result.

&

big & numeric â integer Instance Public methods Performs bitwise and between big and numeric.

%

big % other â Numeric Instance Public methods Returns big modulo other. See Numeric#divmod for more information.

sqrt

sqrt(x,prec) Instance Public methods Computes the square root of x to the specified number of digits of precision. BigDecimal.new('2').sqrt(16).to_s -> "0.14142135623730950488016887242096975E1"

sin

sin(x, prec) Instance Public methods Computes the sine of x to the specified number of digits of precision. If x is infinite or NaN, returns NaN.

cos

cos(x, prec) Instance Public methods Computes the cosine of x to the specified number of digits of precision. If x is infinite or NaN, returns NaN.

atan

atan(x, prec) Instance Public methods Computes the arctangent of x to the specified number of digits of precision. If x is NaN, returns NaN.

PI

PI(prec) Instance Public methods Computes the value of pi to the specified number of digits of precision.

Page 2236 of 2275

|< < Prev 2233 2234 2235 2236 2237 2238 2239 Next > >|
  • Facebook
  • Tweet
  • Digg it
  • Stumbleupon
  • Delicious
  • Plus Share

Designed by : w10schools

service@w10schools.com

Our Partners: aeeble – Providing content publishing and search solutions