Why is python so shit?
It's not.
>>61016455
This is true for any programming language.
Google floating point arithmetic in computers.
>>61016571
https://www.wolframalpha.com/input/?i=Product%5Bx+-+i,+%7Bi,+1,+21%7D%5D%3D%3D0
https://www.wolframalpha.com/input/?i=.1%2B.2
I'm sure python has several arbitrary precision libraries so you don't have to use those standard compliant fliers.
>>61016898
Your b8 is too obvious.
>>61016201
use decimal floating point library
>>61017096
Still would get complex roots
>>61016455
You know there's a website dedicated just for that, right?
https://0.30000000000000004.com/
>>61016201
https://en.wikipedia.org/wiki/Wilkinson%27s_polynomial
>>61016201
>>61016455
>js baby's first encounter with a real language
>>61016201
>Windows Command Prompt
>>61016201
why use python when go exists?
it's just as easy and retard friendly.. as well as way fucking faster
>>61020651
js does that too
>>61017323
>tfw go does it correctly
>>61021088
almost every lang does that. floating point numbers aren't precise and it comes down to the float-to-string function whether it shows a reasonable number or decides that the incredibly small fraction is worth printing
>>61016201
It's not. Get shit done language.
>>61021550
>shit done
>can't even get at the roots of a polynomial
right...
>>61016571
>>61020651
>Python
>Real language
lmao
>>61021099
Not only go$ cat src/main.rs && cargo run
fn main() {
let x = 0.1f32 + 0.2f32;
println!("{}", x);
}
Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs
Running `target/debug/test-rs`
0.3
>>61020651
>Pytoddler calling out a jsbabby
kek
>>61021099
>>61022432
Because those languages truncate the display, underneath the hood it's the exact same number as is shown by Python
Better than Powershell.
The """only""" problem I have with python is its common dependency issues
>>61023969
>languages truncate the display
Good for me, it truncates unnecessary potential flawed data
>>61016455
>hurr I don't know how computers work