Aapsi (@aapsik) 's Twitter Profile
Aapsi

@aapsik

Chaotic human living in the world of art and web3 • Smart Contracts @zodorRWA • vibing @developer_dao • Building @avax @AvaxDAO_ || Learning Rust 🦀

ID: 952873703129300994

linkhttps://linktr.ee/aapsiK calendar_today15-01-2018 12:02:49

1,1K Tweet

1,1K Takipçi

1,1K Takip Edilen

Aapsi (@aapsik) 's Twitter Profile Photo

Solidity tip: Always multiply before divide to avoid losing precision! Why? 👉 1e18 is a multiplier to simulate decimals (like 100% = 1e18). Then to get a readable %: Solidity has no decimals: That’s 25% in fixed-point format (1e18 = 100%).

Solidity tip: Always multiply before divide to avoid losing precision!

Why?
👉 1e18 is a multiplier to simulate decimals (like 100% = 1e18).

Then to get a readable %:

Solidity has no decimals:

That’s 25% in fixed-point format (1e18 = 100%).