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


[]

fix[n] â 0, 1 Instance Public methods Bit ReferenceâReturns the nth bit in the binary representation of fix, where fix is the least significant bit. a = 0b11001100101010 30.downto(0) do |n| print a[n] end produces: 0000000000000000011001100101010

>>

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

>=

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

>

fix > real â true or false Instance Public methods Returns true if the value of fix is greater than that of real.

===

fix == other â true or false Instance Public methods Return true if fix equals other numerically. 1 == 2 #=> false 1 == 1.0 #=> true

==

fix == other â true or false Instance Public methods Return true if fix equals other numerically. 1 == 2 #=> false 1 == 1.0 #=> true

<=>

fix numeric â -1, 0, +1 or nil Instance Public methods ComparisonâReturns -1, 0, +1 or nil depending on whether fix is less than, equal to, or greater than numeric. This is the basis for the tests in Comparable. nil is returned if the two values are incomparable.

<=

fix Instance Public methods Returns true if the value of fix is less than or equal to that of real.

<<

fix Instance Public methods Shifts fix left count positions (right if count is negative).

<

fix Instance Public methods Returns true if the value of fix is less than that of real.

Page 2077 of 2275

|< < Prev 2074 2075 2076 2077 2078 2079 2080 Next > >|
  • Facebook
  • Tweet
  • Digg it
  • Stumbleupon
  • Delicious
  • Plus Share

Designed by : w10schools

service@w10schools.com

Our Partners: aeeble – Providing content publishing and search solutions