This project is read-only.

Float

A float stores a double-precision floating point number. Can be defined in code using a dot notation:

var fp = 1.337 

Operations

Floating point numbers can be subject to:
  • Arithmetical operations: +, -, *, / and ** for raising to power

Methods

  • bool to_b: converts to bool: 0.0 = false, else true
  • int to_i: converts to int using rounding
  • string to_s: converts to string

Last edited Mar 14, 2011 at 10:47 PM by impworks, version 2

Comments

No comments yet.