From: Kathy Lee on
I'm new to Ruby and I've been playing around with it abit.

the following line of code produces a out of range warning.
puts 3.14159 #outputting a simple float value

It will output the value in console, however it will warn me with the
following:
C:/Users/Admin/IdeaProjects/RubyExampl… warning: Float 3.14159 out of
range

To my knowledge, the value should be within bounds of a float object.
I'm using Ruby SDK v1.8.6 and IntelliJ with the Ruby plugin as my IDE

Thanks, any help is appreciated.
--
Posted via http://www.ruby-forum.com/.

From: Phillip Gawlowski on
On 29.12.2009 06:52, Kathy Lee wrote:

> It will output the value in console, however it will warn me with the
> following:
> C:/Users/Admin/IdeaProjects/RubyExampl… warning: Float 3.14159 out of
> range

irb(main):001:0> puts 3.14159
3.14159
=> nil
irb(main):002:0> RUBY_VERSION
=> "1.8.6"

> To my knowledge, the value should be within bounds of a float object.
> I'm using Ruby SDK v1.8.6 and IntelliJ with the Ruby plugin as my IDE

What is "Ruby SDK"?

--
Phillip Gawlowski

From: Kathy Lee on
Phillip Gawlowski wrote:
> What is "Ruby SDK"?

It's the Ruby interpreter, i.e Ruby.exe
--
Posted via http://www.ruby-forum.com/.

From: Phillip Gawlowski on
On 29.12.2009 07:19, Kathy Lee wrote:
> Phillip Gawlowski wrote:
>> What is "Ruby SDK"?
>
> It's the Ruby interpreter, i.e Ruby.exe

Then, apparently, your IDE is throwing the error.

BTW, we refer to Ruby as "Ruby RUBY_VERSION", not as "Ruby SDK". :)

--
Phillip Gawlowski

From: Kathy Lee on
Phillip Gawlowski wrote:
> On 29.12.2009 07:19, Kathy Lee wrote:
>> Phillip Gawlowski wrote:
>>> What is "Ruby SDK"?
>>
>> It's the Ruby interpreter, i.e Ruby.exe
>
> Then, apparently, your IDE is throwing the error.
>
> BTW, we refer to Ruby as "Ruby RUBY_VERSION", not as "Ruby SDK". :)

Oh thanks, appreciate it. Would you please recommend a decent IDE in
that case?
--
Posted via http://www.ruby-forum.com/.