SyntaxFix
Write A Post
Hire A Developer
Questions
lambda x,n:int(x*10n+.5)/10n has worked for me for many years in many languages.