trictrac 0 Posted February 12 Share Posted February 12 elrond-wasm holds a BigUint data type. can anyone tell me how I'm supposed to calculate with it? I would like to know what 110% of a certain BigUint value is. Can't finf any documentation about it. help is very welcome. Quote Link to post Share on other sites
Dorin Marian Iancu 1 Posted February 16 Share Posted February 16 You should be able to do something like this: let one_hundred_ten_percent = your_big_uint + your_big_uint / BigUint::from(10u32); Keep in mind though that because of how integer division works, you can end up with unexpected values. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.