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
to_f

flt.to_f â self Instance Public methods As flt is already a float, returns self.

to_i

flt.to_i â integerflt.to_int â integer Instance Public methods Returns flt truncated to an Integer.

to_int

flt.to_int â integer Instance Public methods Returns flt truncated to an Integer.

to_r

flt.to_r â rational Instance Public methods Returns the value as a rational. NOTE: 0.3.to_r isn't the same as '0.3'.to_r. The latter is equivalent to '3/10'.to_r, but the former isn't so. 2.0.to_r #=> (2/1) 2.5.to_r #=> (5/2) -0.75.to_r #=> (-3/4) 0.0.to_r #=> (0/1) See rationalize.

to_s

flt.to_s â string Instance Public methods Returns a string containing a representation of self. As well as a fixed or exponential form of the number, the call may return âNaN'', âInfinity'', and â-Infinity''. inspect

truncate

flt.truncate â integer Instance Public methods Returns flt truncated to an Integer.

zero?

flt.zero? â true or false Instance Public methods Returns true if flt is 0.0.

actual

actual(fnt, option=nil) Class Public methods

actual_displayof

actual_displayof(fnt, win, option=nil) Class Public methods

actual_hash

actual_hash(fnt, option=nil) Class Public methods

Popular Articles
Galleriffic - A jQuery plugin for rendering rich, fast-performing photo galleries Galleriffic is a jQuery plugin that provides a rich, post-back free experience optimized to handle high volumes of photos while conserving bandwidth. 
venv.EnvBuilder class venv.EnvBuilder(system_site_packages=False, clear=False, symlinks=False, upgrade=False, with_pip=False) The EnvBuilder class accepts the fol
collections.abc.Sequence class collections.abc.Sequence class collections.abc.MutableSequence class collections.abc.ByteString ABCs for read-only and mutable sequences. Imp
perlce - Perl for WinCE NAME Building Perl for WinCEWARNING DESCRIPTION General explanations on cross-compiling WinCE CURRENT BUILD INSTRUCTIONS OLD BUILD INSTRUCTIONS Us
deferred.then() Add handlers to be called when the Deferred object is resolved, rejected, or still in progress. Prior to


Page 262 of 11844

|< < Prev 259 260 261 262 263 264 265 Next > >|
  • Facebook
  • Tweet
  • Digg it
  • Stumbleupon
  • Delicious
  • Plus Share

Designed by : w10schools

service@w10schools.com

Our Partners: aeeble – Providing content publishing and search solutions