Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby Ruby Basics (Retired) Ruby Numbers Creating Different Kinds of Numbers

Konrad Pilch
Konrad Pilch
2,435 Points

I dont think this is proper?

I dont think this is a proper question and tip?

Create a variable called a and set it to any whole number. Create another variable called b that is set to be a number with a decimal. Bummer! There was a problem with the code. Double check that a year variable was set and try again.

A year variable?

1 Answer

Kevin Korte
Kevin Korte
28,148 Points

What does your code look like? I just did this challenge and it seemed to work fine.

Konrad Pilch
Konrad Pilch
2,435 Points

It worked for me, but the first time i tried, it didnt but what i mean is that :

It tell us to create a variable thats whole number variable name 'a' , and then create vairbale 'b' thats number with a decimal.

And then it wrote bummer. double check thath a "year variable was set and try again" a year variable?

Thats confusing : p