You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
platfowner
changed the title
Different json serialization for floating point numbers
Different decimals of floats after JSON serialization
Oct 30, 2023
javascript:
{"gas_price":0,"nonce":-1,"operation":{"is_global":false,"ref":"/transfer/0x09A0d53FDf1c36A131938eb379b98910e55EEfe1/0xbA58D93edD8343C001eC5f43E620712Ba8C10813/-Nh_Na-GOlQGmp3-UILA/value","type":"SET_VALUE","value":0.000001},"timestamp":1698213027857}
python:
{"gas_price":0,"nonce":-1,"operation":{"is_global":false,"ref":"/transfer/0x09A0d53FDf1c36A131938eb379b98910e55EEfe1/0xbA58D93edD8343C001eC5f43E620712Ba8C10813/-Nh_Ox3mmy08Hu8cnlvl/value","type":"SET_VALUE","value":1e-06},"timestamp":1698213384499}
This happens for numbers with exponent 5 or 6:
Related issues:
The text was updated successfully, but these errors were encountered: