Why is python so shit?
Why is python so shit?
It's not.
...
This is true for any programming language.
Google floating point arithmetic in computers.
I'm sure python has several arbitrary precision libraries so you don't have to use those standard compliant fliers.
Your b8 is too obvious.
use decimal floating point library
Still would get complex roots
You know there's a website dedicated just for that, right?
0.30000000000000004.com
...
>js baby's first encounter with a real language
>Windows Command Prompt
why use python when go exists?
it's just as easy and retard friendly.. as well as way fucking faster
js does that too
>tfw go does it correctly
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
It's not. Get shit done language.
>shit done
>can't even get at the roots of a polynomial
right...
...
>Python
>Real language
lmao
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
>Pytoddler calling out a jsbabby
kek
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
>languages truncate the display
Good for me, it truncates unnecessary potential flawed data
>hurr I don't know how computers work