0

So i want to get an readable Float like this:

float_to_readable(1026.5632)

The Output should be: 1,6K

another example is:

float_to_readable(1000026.5632)

The Output should be: 1.6M

I already have a function that converts 10.582 to 10.6: format(num, f".{digits}f")

TRC Loop
  • 1
  • 2

0 Answers0