15 lines
195 B
Python
15 lines
195 B
Python
import math
|
|
from math import log10, floor
|
|
|
|
|
|
def round_sig(x, sig=2):
|
|
return round(x, sig - int(floor(log10(abs(x)))) - 1)
|
|
|
|
|
|
price = 7200
|
|
seeds = 27.86
|
|
|
|
cnt = seeds/price
|
|
|
|
print(str(cnt)[:5])
|