telosnetwork / teloscan

Telos EVM block explorer for viewing blocks, transactions, contracts, staking, and more
https://teloscan.io
Apache License 2.0
22 stars 25 forks source link

Display amounts with customizable amount of decimals #716

Closed Viterbo closed 7 months ago

Viterbo commented 7 months ago

Description

We display token amounts on many tables and need them to behave similarly. The user should have a switcher in the column name to change between a fixed amount of decimals (even on integer numbers) or the least necessary not losing precision. The choice should be remembered (local storage) and all tables should use the same setting.

fixed dynamic tooltip
3.0000 3 3.0
3.1000 3.1 3.1
3.1234 3.1234 3.123456789012345678