PHP to Ruby
Convert PHP code into Ruby!
-
is_real
Posted on August 18th, 2009 No commentsThe is_real() function in PHP is simply an alias of is_float() - for full details see the is_float() function.
-
is_float
Posted on July 29th, 2009 No commentsThe is_float() function allows you to check if a particular variable is a float (type).
PHP
$number = 6.5; var_dump( is_float($number) ); // => true
Ruby
number = 6.5; puts number.is_a?(Float); # => true


