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


even?

big.even? â true or false Instance Public methods Returns true if big is an even number.

eql?

big.eql?(obj) â true or false Instance Public methods Returns true only if obj is a Bignum with the same value as big. Contrast this with Bignum#==, which performs type conversions. 68719476736.eql?(68719476736.0) #=> false

divmod

big.divmod(numeric) â array Instance Public methods See Numeric#divmod.

div

big.div(other) â integer Instance Public methods Performs integer division: returns integer value.

coerce

coerce(p1) Instance Public methods MISSING: documentation

abs

big.abs â aBignum Instance Public methods Returns the absolute value of big. -1234567890987654321.abs #=> 1234567890987654321

^

big ^ numeric â integer Instance Public methods Performs bitwise +exclusive or+ between big and numeric.

[]

big[n] â 0, 1 Instance Public methods Bit ReferenceâReturns the nth bit in the (assumed) binary representation of big, where big is the least significant bit. a = 9**15 50.downto(0) do |n| print a[n] end produces: 000101110110100000111000011110010100111100010111001

>>

big >> numeric â integer Instance Public methods Shifts big right numeric positions (left if numeric is negative).

>=

big >= real â true or false Instance Public methods Returns true if the value of big is greater than or equal to that of real.

Page 2234 of 2275

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

Designed by : w10schools

service@w10schools.com

Our Partners: aeeble – Providing content publishing and search solutions