была задача как-то хитро округлять числа.
- Inputs with less precision than the specified precision should be supported.
- Inputs exceeding this precision should be truncated or rounded down
For example, with 2 digits of precision specified: treat
100.5
as
100.50
treat
100.4567
as
100.45
сказали, что им понравился “
мой хак”. В принципе в этот момент стало понятно, что питон они не знают