Closed shmuga closed 6 years ago
I think this is a rust thing unrelated to crowbar or python or lambda. Even with the debug format string, rust doesn't print the full precision of a floating point number.
If you run this playground, you'll see those extra digits of precision are there in rust too if you look for them.
I think the confusion is entirely from rust's f32 display and debug implementation both implicitly rounding floating point numbers for printing by default.
Heh, thanks a lot, anyway! I thinks this issue could be closed.
Hello,
I'm new to Rust and not sure if I choose correct repo to report you a problem but I found a problem with passing JSON from Rust to Lambda response.
Using such code snippet in Rust println! shows 45.74 but in aws response I have
{ "val": 45.7400016784668 }
. Maybe it's Python problem?