Number Formatting Issue On Client

If you run this code :

a = 1640799.87
print( "{:,.1f}".format(a) )

on the client is will show (incorrectly) :
1640799.9

and on the server it will show (correctly) :
1,640,799.9

Demo here :
https://anvil.works/build#clone:5DGI35EEPXAGXJ2Q=5ZY636RC6GDKWQA42HE3E37J
Click the button on the form and the same code will run client & server side and print their results.

1 Like

Thanks for the report - moving to Bug Reports!

I believe my problem is the same bug.

number = 1234567.89
print(f"{number:,}")

When I use this code in my Jupyter notebook, I get “1,234,567.89” but when I run it in Anvil (client side), I get “1234567.89”. The problem seems to affect floats but not integers.