Class: Float

Inherits:
Object
  • Object
show all
Defined in:
lib/cell_cycle/virginia_tech.rb

Overview

The following definitions are used to handle Float::NAN.

Instance Method Summary collapse

Instance Method Details

#nan_to_zeroObject



11
# File 'lib/cell_cycle/virginia_tech.rb', line 11

def nan_to_zero; nan? ? 0.0 : self end