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

C# C# Streams and Data Processing Parsing Data Review

Alec Meyer
Alec Meyer
6,303 Points

Not sure why this isn't correct.

int x = 4;
int y = 6;
return (double) x / y;    /* 0.6666666666666663 */

That sure looks like a floating point number to me.

1 Answer

Steven Parker
Steven Parker
231,248 Points

Assuming the comment was not part of your answer, I think the challenge doesn't like the space between the cast and the variable name. Try it without and I'll bet it gets judged as correct.

Since this isn't a syntax restriction, you might want to submit a bug report to the Support folks.

Alec Meyer
Alec Meyer
6,303 Points

You're right. It was the space, I'll go ahead and submit the bug report.

Thanks again!