same lol

• ###### yuttaboradjcommented on "Collinearity" python solution

This comment is hidden because it contains spoiler information about the solution

• ###### uncle_damcommented on "Collinearity" kata

Sorry, but I don't understand what to do and what you want, worse, I don't understand the solution, not 8kyu.

Approved

• ###### mosstrukcommented on "Collinearity" kata

@Yushi.py thanks!
(yes i was using c++ btw)

• ###### CatPlusPluscommented on "Collinearity" kata

I read Stroustrup's book from beginning to end (which is easy), although now it's all covered in dust, and I'm learning mathematics for data analysis.
I think it's time to repeat the syntax to maintain the image :)

• ###### Yushi.pycommented on "Collinearity" kata

When I first saw your name, I thought you were a full on C++ programmer from your name, looks can be deceiving.

• ###### CatPlusPluscommented on "Collinearity" kata

hmm... but once upon a time I knew the C++ syntax, that's what Python does with people :)

• ###### JohanWiltinkcommented on "Collinearity" kata

JS's `Number` data type would also give `1 / 2 === .5`, though `BigInt` would give `1 / 2 === 0`.

This has nothing to do with C++, Python, or the actual issue, I just wanted to throw out there that it's not just Python. Generally, being aware of your datatypes and the typing of your operators is A Good Thing.

• ###### Yushi.pyresolved an issue on "Collinearity" kata

Hi @mosstruck. Please mention the language you're using so we can better help you with your problem.

Though, through the littlest of stalkings, I'd infer you're using C++.

You should note that when you do something like `x1 / x2` and both `x1` and `x2` are integers, their result will also be an integer rather than a float, so `1 / 2` will result in `0`, rather than `0.5`. The only language I know that resolves this to `0.5` is Python. I suppose this caused @CatPlusPlus's confusion.

As to resolving the task, you could try turning one of the values to a float or rewriting the expression in a way that doesn't use a division; that's up to you.

• ###### CatPlusPluscommented on "Collinearity" kata

strange, could you clarify in what programming language you wrote this, 0.5 as a float should be stored without data loss (forgive me in advance, I’m writing through a translator, because I’m still too lazy to learn English grammar :) )

• ###### mosstrukcreated an issue for "Collinearity" kata

This comment is hidden because it contains spoiler information about the solution

• ###### olujegs01commented on "Collinearity" kata

I really like the task

• ###### Sviridov. Ucommented on "Collinearity" kata

This comment is hidden because it contains spoiler information about the solution