-1

I am trying to print the exact minimum value from a list using the sample code below:

mylist = [value]

while True:
    price_list.append(value)
    low_value = min(value)
    print("min value = " float(low_value))


    time.sleep(600)

value is being constantly updated from my website scraper pulling data from my website. Often the actual value displayed is 19.9900, however, the output is "min value = 19.9" or "min value = 19" depending on the price change.

I would like the full value to be displayed (eg. 19.9900) and I am having trouble doing this.

Brendan
  • 23
  • 3

1 Answers1

0

Try something like:

print(f"{low_value:.6f}")

You can check out this answer too for more details.