IHYPRESS.NET > RUBY
HOME
|
ASP
|
C
|
HTML/CSS
|
JAVASCRIPT
|
MATLAB
|
PERL
|
PHP
|
PYTHON
|
RUBY
Ruby
> Program #04 [Conversions]
CODE
RESULT
<
#!/usr/bin/ruby -w print "Content-type: text/html\n\n" puts "" puts "hello".to_i.to_s + "
" puts "hello".to_f.to_s + "
" puts 3.5.to_i.to_s + "
" puts 3.5.to_s + "
" puts 4.to_f.to_s + "
" puts 5.to_s + "
" puts 12.is_a?(Integer).to_s + "
" puts ""
>
COPYRIGHT © 2018 IHYPRESS.NET. A DIVISION OF IHY PRESS, KIRKLAND, WA 98083 USA. ALL RIGHTS RESERVED.