# Ruby Float out of range warning?

**URL:** <https://www.ruby-forum.com/t/ruby-float-out-of-range-warning/180791>\
**Category:** Ruby\
**Created:** [December 29, 2009, 6:52am UTC](https://www.ruby-forum.com/t/ruby-float-out-of-range-warning/180791 "2009-12-29T06:52:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![kpathy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/bc79bd/32.png) [@kpathy](https://www.ruby-forum.com/u/kpathy)\
**Post date:** [December 29, 2009, 6:52am UTC](https://www.ruby-forum.com/t/ruby-float-out-of-range-warning/180791/1 "2009-12-29T06:52:26Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![kpathy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/bc79bd/32.png) [@kpathy](https://www.ruby-forum.com/u/kpathy)\
**Post date:** [December 29, 2009, 7:09am UTC](https://www.ruby-forum.com/t/ruby-float-out-of-range-warning/180791/2 "2009-12-29T07:09:50Z")

</div>

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”?

---

<div class="post-metadata">

**Author:** ![kpathy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/bc79bd/32.png) [@kpathy](https://www.ruby-forum.com/u/kpathy)\
**Post date:** [December 29, 2009, 7:19am UTC](https://www.ruby-forum.com/t/ruby-float-out-of-range-warning/180791/3 "2009-12-29T07:19:51Z")

</div>

Phillip G. wrote:

> What is “Ruby SDK”?

It’s the Ruby interpreter, i.e Ruby.exe

---

<div class="post-metadata">

**Author:** ![kpathy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/bc79bd/32.png) [@kpathy](https://www.ruby-forum.com/u/kpathy)\
**Post date:** [December 29, 2009, 7:30am UTC](https://www.ruby-forum.com/t/ruby-float-out-of-range-warning/180791/4 "2009-12-29T07:30:19Z")

</div>

On 29.12.2009 07:19, Kathy Lee wrote:

> Phillip G. 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”. 🙂

---

<div class="post-metadata">

**Author:** ![kpathy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/bc79bd/32.png) [@kpathy](https://www.ruby-forum.com/u/kpathy)\
**Post date:** [December 29, 2009, 8:00am UTC](https://www.ruby-forum.com/t/ruby-float-out-of-range-warning/180791/5 "2009-12-29T08:00:45Z")

</div>

On 29.12.2009 07:49, Kathy Lee wrote:

> Oh thanks, appreciate it. Would you please recommend a decent IDE in  
> that case?

Well, _that_ opens a whole can of worms. 😉

Me, I use NetBeans if I have to have access to IDE features.  
Otherwise, I’m happy with vim (if you are on Windows, I can point you to  
an article I wrote in getting vim 7.2 to work with Ruby from within  
vim), or Notepad++, simple text editors.

All of these choices are Free as in beer, as well as in speech.

---

<div class="post-metadata">

**Author:** ![kpathy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/bc79bd/32.png) [@kpathy](https://www.ruby-forum.com/u/kpathy)\
**Post date:** [December 29, 2009, 7:49am UTC](https://www.ruby-forum.com/t/ruby-float-out-of-range-warning/180791/6 "2009-12-29T07:49:16Z")

</div>

Phillip G. wrote:

> On 29.12.2009 07:19, Kathy Lee wrote:
> 
> > Phillip G. 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?

---

<div class="post-metadata">

**Author:** ![kpathy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/bc79bd/32.png) [@kpathy](https://www.ruby-forum.com/u/kpathy)\
**Post date:** [December 29, 2009, 8:12pm UTC](https://www.ruby-forum.com/t/ruby-float-out-of-range-warning/180791/7 "2009-12-29T20:12:31Z")

</div>

Kathy Lee wrote:

> Phillip G. wrote:
> 
> > On 29.12.2009 07:19, Kathy Lee wrote:
> > 
> > > Phillip G. 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?

Try working without an IDE. Ruby doesn’t benefit from IDEs nearly as  
much as Java does. I recommend a good editor such as jEdit or  
KomodoEdit instead. NetBeans _mostly_ has good Ruby support, if you  
really need an IDE.

## Best,

Marnen Laibow-Koser  
[http://www.marnen.org](http://www.marnen.org)  
removed\_email\_address@domain.invalid
