Python zaokrąglony liczbami do N cyfr
def roundTraditional(val,digits):
return round(val+10**(-len(str(val))-1), digits)
Embarrassed Eel
def roundTraditional(val,digits):
return round(val+10**(-len(str(val))-1), digits)